background preloader

Blogs

Facebook Twitter

EF CTP4 Tips & Tricks. Posted on July 14, 2010. Filed under: Entity Framework, Visual Studio | Tags: CTP4, EF, Entity Framework, Include, Visual Studio | The release of Entity Framework Feature CTP4 was recently announced and included some walkthroughs touching on the core functionality included in the CTP. Over the next couple of weeks I’m going to post up a series of short articles that cover some of the finer points in the CTP. The CTP includes some work called the Productivity Improvements for EF which aims to provide a simpler and more productive experience writing data access code with EF.

Building a Quick Model With the productivity improvements I can define a model using a set of POCO classes: With the classes defined I just need to write a simple context: Then I can use it for data access and EF will take care of discovering my model and creating a database for me: Existing Include In EF4 (.NET 4.0, Visual Studio 2010) Include accepts a string to specify the related properties that should be loaded: Summary. Sandcastle. ADO.NET. Daniel Simmons (MS) Jiří Činčura | Firebird. EntityFramework (Julie Lerman)