문제

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