Another Use Case for DbContext.Add in EFCore (and a DDD win)

added by DotNetKicks
11/1/2017 11:29:29 AM

2 Kicks, 379 Views

If you are like me and design your classes following Domain-Driven Design principals , you may find yourself with code like this for controlling how objects get added to collections in the root entity. public class Samurai { public Samurai (string name) : this() { Name = name; } private Samurai () { _quotes=new List ();...


0 comments