EF 4.0: Creating objects of correct type when using lazy loading(weblogs.asp.net)
submitted by
gpeipman(3145) 2 years, 2 months ago
In my posting about Entity Framework 4.0 and POCOs I introduced lazy loading in EF applications. EF uses proxy classes for lazy loading and this means we have new types that come and go dynamically in runtime. We don’t have these types available when we write code but we cannot forget that EF may expect us to use dynamically generated types. In this posting I will give you simple hint how to use correct types in your code.
|category: Architecture
|Views: 13
tags:
Architecture another
Everyones tags:
Your Tags: