How can I dynamically customize a POCO proxy in EF 4?
问题 I would like to dynamically customize some POCO classes overriding myself the virtual members to be able to compile LINQ to Entities queries. I know about the ObjectMaterialized event but that happens after the class instantiation. I would like to be able to create the proxy myself, override the virtual members I want and then pass along to the EF, is that possible? Imagine the following POCO class: public class Consumer { /* That´s a virtual property with an association in EF */ public