سؤال

I have a complex object graph which is just a set of stubs ie POCO types with an Id, which are freshly created and not attached to the context. These match up (by Id) with items already in the database. I am expecting EF to offer a means of 'hydrating' all of these stubs recursively... what's the mantra?

هل كانت مفيدة؟

المحلول

As long as the properties are virtual this works as expected.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top