How does Entity Framework 4.0 determine which parameters are required for the factory method of an e

Posted by Scott Davies on Stack Overflow See other posts from Stack Overflow or by Scott Davies
Published on 2010-03-30T18:50:27Z Indexed on 2010/03/30 18:53 UTC
Read the original article Hit count: 445

Hi,

I am working with Entity Framework 4.0 (VS 2010 Beta 2, NOT RC). I can model the EDM and produce the required database. When I ask VS to generate the code for the model, it generates the expected .designer.cs file. When I look at the factory methods for each entity that the designer has generated, I've noticed that it doesn't include all of the properties of the entity.

Is it correct to say that the factory method only includes properties that cannot be null ? This appears to be the case, but I'm not entirely sure.

Thanks,

Scott

© Stack Overflow or respective owner

Related posts about entity-framework

Related posts about c#