# Entity Framework ## πŸ“• Articles - [Let’s do some DDD with Entity Framework Core 3!](https://www.davidguida.net/lets-do-some-ddd-with-entity-framework-core-3/) - [Shadow and Indexer Properties](https://docs.microsoft.com/en-us/ef/core/modeling/shadow-properties) - [Owned Entity Types](https://docs.microsoft.com/en-us/ef/core/modeling/owned-entities) - [Having the domain model separated from the persistence model](https://enterprisecraftsmanship.com/posts/having-the-domain-model-separate-from-the-persistence-model/) - [EF Core 2.1 vs NHibernate 5.1: DDD perspective](https://enterprisecraftsmanship.com/posts/ef-core-vs-nhibernate-ddd-perspective/) - [Link to an aggregate: reference or Id?](https://enterprisecraftsmanship.com/2016/03/08/link-to-an-aggregate-reference-or-id/) - [Nulls in Value Objects](https://enterprisecraftsmanship.com/posts/nulls-in-value-objects/) - [EF Core 2.1 vs NHibernate 5.1: DDD perspective](https://enterprisecraftsmanship.com/posts/ef-core-vs-nhibernate-ddd-perspective/) - [Using Value Objects with Entity Framework Core](https://levelup.gitconnected.com/using-value-objects-with-entity-framework-core-5cead49dbf9c) - [Supporting Nullable Owned Types in Entity Framework Core](https://levelup.gitconnected.com/how-to-have-nullable-owned-types-in-entity-framework-core-84ed9f112878) - [Representing a collection as a Value Object](https://enterprisecraftsmanship.com/posts/representing-collection-as-value-object/) - [Entity vs Value Object: the ultimate list of differences](https://enterprisecraftsmanship.com/posts/entity-vs-value-object-the-ultimate-list-of-differences/) - [Nesting a Value Object inside an Entity](https://enterprisecraftsmanship.com/posts/nesting-value-object-inside-entity/) - [Implement the infrastructure persistence layer with Entity Framework Core](https://docs.microsoft.com/en-us/dotnet/architecture/microservices/microservice-ddd-cqrs-patterns/infrastructure-persistence-layer-implementation-entity-framework-core) - [Encapsulated Collections in Entity Framework Core](https://ardalis.com/encapsulated-collections-in-entity-framework-core/) - [Entity types with constructors](https://docs.microsoft.com/en-us/ef/core/modeling/constructors) - [Backing Fields](https://docs.microsoft.com/en-us/ef/core/modeling/backing-field?tabs=data-annotations) - [Integrity of Collections in Domain-Driven Design](https://ankitvijay.net/2020/05/10/integrity-of-collections-in-domain-driven-design/) - [Strengthening your domain: Encapsulated collections](https://lostechies.com/jimmybogard/2010/03/10/strengthening-your-domain-encapsulated-collections/) - [Encapsulated Collections in Entity Framework Core](https://ardalis.com/encapsulated-collections-in-entity-framework-core/?utm_sq=gtj0ysb0tw) - [How to have private constructors and private setters when using Entity Framework Core Database first](https://davecallan.com/how-to-have-private-constructors-and-private-setters-when-using-entity-framework-core-database-first/) - [Domain-Driven Design With Entity Framework Core 8](https://thehonestcoder.com/ddd-ef-core-8/) ## πŸ“Ί Videos - [How to use EF Core 5 with DDD style projects - part 1](https://www.youtube.com/watch?v=bzI5g6PVM-I) - [How to use EF Core 5 with DDD style projects - part 2](https://www.youtube.com/watch?v=D1hSU-q3GLc) - [How to use EF Core 5 with DDD style projects - part 3](https://www.youtube.com/watch?v=tgDE87Y5t_8) - [Practical Domain-Driven Design with EF Core - Hossam Barakat](https://www.youtube.com/watch?v=yxtsTEhb140) ## πŸš€ Samples - [mizrael/EFCoreCommerceDemo](https://github.com/mizrael/EFCoreCommerceDemo) - Small demo showing how to use DDD with Persistence Ignorance using Entity Framework Core 3. - [mizrael/DDD-School](https://github.com/mizrael/DDD-School) - Implementation of the Outbox pattern to improve microservices reliability - [milannankov/EfCoreValueObjects](https://github.com/milannankov/EfCoreValueObjects) - Illustrates support for value object with Entity Framework Core 2.2 - [wmeints/efcore-ddd-demo](https://github.com/wmeints/efcore-ddd-demo) - A demonstration how to use EF Core in a DDD context. - [hossambarakat/Subscriptions-DDD](https://github.com/hossambarakat/Subscriptions-DDD)