poco - Entity Framework 4 Code First and the new() Operator -
I have a deep hierarchy of objects that I would like to do with unit framework 4, POCO, PI (continuity ignorance) It started when I had confidence in not using the new () operator. Originally in written form, objects often use new () to create child objects. Instead, I am using myself on the repository pattern to make all the child objects as necessary. For example, given: class Adam {list & lt; Child & gt; children; Zero AddChildGivenInput (string input) {children.Add (new kid (...)); }} Category Children {List & lt; Grand Chald & gt; Grandsons; Zero AddGrandChildGivenInput (string input) {grandchildren.Add (New GrandChild (...)); P> Class AdamRepository {ADD ADD} {return objectContext.Create & lt; Adam & gt; (); } AddChildGivenInput (Adam Adam, string input) {return adam.children.Add (new child (...)); } GrandChild AddGrandchildGivenInput (child child, string input) {return child.grandchildren.Add (new GrandChild (...)); }} Now, it w...