Is it possible to load an entity except some properties? One of the properties of this unit is expensive to choose. I want to load this property lazy. Is this possible?
Now that you've read every person's answer, I will give you the correct answer. EF does not support lazy loading of properties, though it supports a very powerful concept. This table is called partition where you can map a table for two entities. Say that a product table can be mapped to the product unit and ProductDetail unit in the database. You can then move expensive areas for the product field and then create a 1..1 association between prodcut and productdetail unit. Then you can load the lazy Product Detection Association only when you need it in the chapter of your performance of my book, I have the recipe 13-9.
Comments
Post a Comment