Freigeben über


Feature CTP Walkthrough: POCO Templates for Entity Framework

 


The information in this post is out of date.

Visit msdn.com/data/ef for the latest information on current and past releases of EF.


 

Overview

This post covers a new Entity Framework extension called POCO Templates. POCO Templates is a T4 template and associated include files, that allow you to generate POCO classes or Plain Old CLR Objects for use with the Entity Framework. T4 templates are used because T4 makes it easy to customize your Entities.

POCO Templates ship as part of the Microsoft Entity Framework Feature CTP 1. The CTP works on top of the latest version of the Entity Framework released as part of .NET 4.0 Beta1, and you can download it here.

Requirements

  1. This walkthrough requires Visual Studio 2010 Beta 1
  2. The Microsoft Entity Framework Feature CTP1, that can be downloaded from here.
  3. A local SQL Server 2008 Express instance has to be installed as SQLEXPRESS. Otherwise, changes to the connection string in the web.config file or regenerating the database from the included SQL scripts may be necessary.
  4. Download and extract the initial solution attached to this post.

Read More…

POCOWalkthru.zip

Comments

  • Anonymous
    June 22, 2009
    PingBack from http://aspmvc.co.cc/2009/06/22/feature-ctp-walkthrough-poco-templates-for-entity-framework/

  • Anonymous
    June 22, 2009
    Daily tech links for .net and related technologies - June 19-23, 2009 Web Development Rapid Application

  • Anonymous
    June 22, 2009
    Thank you for submitting this cool story - Trackback from progg.ru

  • Anonymous
    June 22, 2009
    Avec VS 2010 Beta 1, il manquait quelque features pour lesquelles l’EF team avait communiqué en disant

  • Anonymous
    June 22, 2009
    Thank you for submitting this cool story - Trackback from DotNetShoutout

  • Anonymous
    June 27, 2009
    Hi Please, can add a complete sample using a generic repository and unit of work. The actual sample it is not generic. A good sample help to learn!

  • Anonymous
    July 02, 2009
    Where is a good code of generic repository and unit of work together implemented using EF4 ??