Entity Framework Beta 2 & the 1st Entity Framework Tools CTP Released!

Published 27 August 07 04:25 PM | dpblogs 

The long awaited Entity Framework Beta 2 and the accompanying Entity Framework Tools CTP have been released!

Beta 2 of the Entity Framework includes many great improvements and added features since the last release of the June CTP, including:

  • Events to customize code generation
  • Abstract types in EDM models
  • Complex types
  • <Using> support in metadata files
  • Entity key serialization
  • Increased persistence ignorance in entity data classes
  • Improved connection management in ObjectContext
  • Improved DataBinding usability
  • Metadata annotations
  • Better support for span over LINQ to Entities queries
  • Improvements to LINQ queries: additional canonical functions and automatic mapping from CLR functions to server functions
  • A new event for extensibility of SaveChanges
  • Usability and consistency improvements
  • Polymorphic results from stored procedures

 

Along side the Entity Framework Beta 2, we are releasing the ADO.NET Entity Framework Tools Preview. The main purpose of this, the first release of the Entity Framework Tools (CTP1), is to get feedback from you.

Specifically in this release, we have focused on "database first" scenarios and worked hard on the core designer and mapping user experience. Here's a list of features in this release:

Entity Designer

  • Generate a model from a database (via wizard) and display it on the designer surface
  • Edit conceptual model properties (namespace, alias, etc.)
  • Control visual aspects of the design surface (layout) and persist changes
  • Add, Delete, and Edit Entities; Scalar properties; Associations; and Inheritance
  • Automatic set management
  • Automatic Navigation property management
  • Error reporting
  • Validate model and mappings using Entity Framework Runtime

Entity Mapping

  • View the mapping for a C-Side Entity or Association
  • Rename or delete C-Side objects without  worrying about mapping
  • Map an EntityType to multiple tables
  • Apply multiple conditions to a table mapping
  • Map associations
  • Automatic generation of conditions and referential constraints on associations
  • TPH: Map an Entity hierarchy to a single table
  • TPT: Map an Entity hierarchy to multiple tables

Entity Model Browser

  • Understand and visualize the model in a tree hierarchy
  • Visually relate shapes on the designer surface with hierarchy in model

Visual Studio Integration

  • Support for C# and VB in multiple project types: ASP.NET Web site, ASP.NET Web Application Project, Console, WinForms, and Library
  • Project system integration: item template for .edmx file, model generation wizard, EdmxDeploy.exe, and Entity Framework validation on build
  • Support for multiple Visual Studio editions: Express, Standard, Pro, and VSTS.

 

The Entity Framework Beta 2 & Entity Framework Tools Docs can be found here.

And Samples for the Entity Framework Beta 2 can be found here.

Questions about the new release? Check out the ADO.NET Forums.

Elisa Flasko
Program Manager, Data Programmability

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# BlogCoward said on August 27, 2007 8:16 PM:

Entity Framework Beta 2 Released

# Suiseiseki said on August 27, 2007 8:35 PM:

Yay! I can't wait to play with it later this evening ~desu!

# Noticias externas said on August 27, 2007 9:13 PM:

Today the ADO.NET team released Beta 2 of the Entity Framework and the accompanying Entity Framework

# PuntoRete said on August 27, 2007 9:16 PM:

Rilasciato l'Entity Framework Beta 2 e i Tools

# rogerj said on August 27, 2007 9:17 PM:

Docs and Samples weren't available at the advertised locations as of 6/27/2007 at 18:00 PDT.

--rj

# Noticias externas said on August 27, 2007 10:16 PM:

Today, the ADO.NET team announced the release of the long awaited Entity Framework Beta 2 and the NEW

# Vincent said on August 27, 2007 10:19 PM:

It doesn't show any thing in my VS.net 2008 beta 2 project template ? can you tell me what's worng with that?

# Tommy Williams said on August 27, 2007 10:37 PM:

About the docs and samples: they were both up earlier today. Something has happened on the MSDN Online Library. CodePlex was doing an upgrade this evening but that appears to be finished and I can access the samples now. But the docs are still missing. We have escalated the problem.

# Tommy Williams said on August 27, 2007 10:40 PM:

Vincent: there are no project templates for the Entity Framework in Beta 2 / CTP1. Instead, you add a new item to an existing project. Try that and you should see the item template. That will then start the database wizard. Once you have gone through the wizard, you should have a <<somename>>.edmx file in your solution. Double-click on this file in Solution Explorer to open the Entity Designer to explore and modify the model.

# Tommy Williams said on August 27, 2007 10:52 PM:

Update on the docs: it appears to be a transient issue, or possibly a problem that some of the servers in the MSDN server pool don't have the updates on them yet. By repeatedly trying to load the URL, you should be able to see the docs. We hope to resolve this for good tomorrow.

# Vincent said on August 27, 2007 10:57 PM:

Sorry, I mean after I create a website by using .net framework 3.5,  then I try to add a new item, but I can't see ADO.NET entity item in the item list.

# Vincent said on August 27, 2007 10:58 PM:

refer to last comment, I checked C:\Windows\Microsoft.NET\Framework\v3.5\ADO.NET Entity Framework (Pre-Release Version) folder, I couldn't find any thing except license.rtf file.

# Christopher Steen said on August 27, 2007 11:03 PM:

Link Listing - August 27, 2007

# Jaroslaw Kowalski said on August 27, 2007 11:26 PM:

Entity Framework Beta 2 and Entity Framework Tools CTP (both compatible with Orcas Beta 2 release) are

# The Curtain Raiser said on August 28, 2007 12:41 AM:

The ADO.NET Team announced the release of Entity Framework Beta 2 and a CTP for a set of Entity Framework

# Guy Burstein's Blog said on August 28, 2007 1:21 AM:

ADO.Net Entity Framework Beta 2 is available The ADO.Net Entity Framework bits for Visual Studio 2008

# Guy Burstein's Blog said on August 28, 2007 1:28 AM:

ADO.Net Entity Framework Beta 2 is available The ADO.Net Entity Framework bits for Visual Studio 2008

# iFX said on August 28, 2007 4:08 AM:

ADO.NET Entity Framework Beta 2 and Entity Framework Tools CTP Released

# system.data.objects dev guy said on August 28, 2007 4:30 AM:

Sorry for the dearth of blog posting folks, but now that the August CTP is out, it seems like I really

# Noticias externas said on August 28, 2007 4:37 AM:

Sorry for the dearth of blog posting folks, but now that the August CTP is out, it seems like I really

# Steve said on August 28, 2007 5:38 AM:

I was just wondering if you guys have some more information about the "Events to customize code generation" feature.

I looked through the assemblies and the only reference I could find were the events in EntityClassGenerator (OnTypeGenerated event) but don't know how to use this events because no instance is ever made public.

# lynn said on August 28, 2007 5:39 AM:

any support for disconnected, seralizable entities with tracking via remoting, wdf, etc.?

# Angel "Java" Lopez said on August 28, 2007 6:00 AM:

Se acaba de anunciar la disponibilidad de la Beta 2 del Entity Framework de Microsoft: Entity Framework

# Nick's .NET Travels said on August 28, 2007 6:03 AM:

Yesterday the ADO.NET team announced Beta 2 of the much anticipated Entity Framework and support tools

# Luca Beretta said on August 28, 2007 6:27 AM:

Does support the ADO.NET entity data model SQL Server Compact Edition ?

It seems to be unsupported (only SQL 2005/Express or mdf files)

# Mike Chaliy's Blog said on August 28, 2007 6:34 AM:

По-перше підтримка Visual Studio 2008 Beta 2. А це в свою чергу означає що можна чекати на версію Astoria.

# orangy said on August 28, 2007 7:18 AM:

I can't understand how to generate database tables from model. Is it at all possible?

# ひろえむの日々是勉強 said on August 28, 2007 9:59 AM:

ADO.NET Entity Framework Beta 2とADO.Net Entity Framework Tools Aug 07 CTPが公開されています。

# こだかたろうです said on August 28, 2007 10:18 AM:

こんにちは、こだかです。 次期ADO.NETであるADO.NET Entity Framework Beta 2がリリースされました。 詳細はADO.NET team blogを参照して下さい。 ( http://blogs.msdn.com/adonet/archive/2007/08/27/entity-framework-beta-2-the-1st-entity-framework-tools-ctp-released.aspx

# Adrian H. said on August 28, 2007 10:38 AM:

这是比LINQToSQL更Pro的东西..Orcasbeta1的时候没研究它,beta2了也应该看看微软是如何专业地ORM了. DownloadADO.NETEntityFr...

# Michael B said on August 28, 2007 12:01 PM:

Anyone else getting a "Package Load Failure" starting Orcas Beta 2 with this new release?

Error:

Package Load Failure

Package 'Microsoft.Data.Entity.Design.Package.MicrosoftDataEntityDesignPackage, Microsoft.Data.Entity.Design.Package, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has failed to load properly ( GUID = {8889E051-B7F9-4781-BB33-2A36A9BDB3A5} ). Please contact package vendor for assistance. Application restart is recommended, due to possible environment corruption. Would you like to disable loading this package in the future? You may use 'devenv /resetskippkgs' to re-enable package loading.

# Marcelo's WebLog said on August 28, 2007 12:45 PM:

Catch the fever on the MSDN Data Platform page on MSDN. The ADO.NET team blog also has a post here ,

# Craig Lee said on August 28, 2007 12:50 PM:

Michael B, do you happen to have had Orcas beta 1 installed on this machine?

# Sam Gentile said on August 28, 2007 12:58 PM:

My news favorite drink: A StarBucks Black Eye . SOA Service Oriented Infrastructure Building Justifying

# Michael B said on August 28, 2007 1:22 PM:

Did a clean install of XP after Orcas Beta 1. This system is 100% Orcas Beta 2.

Ran into a permissions problem during install of the tools: HKEY_CURRENT_USER\Software\Classes

It's odd because I have full local admin rights. I added the Key to the Everyone group and gave it Full Control, hit Retry in the EF Tools setup and it finished installing with no errors.

I have since uninstalled the tools and framework, restarted, reinstalled each one independently (with a restart between), and have the same Visual Studio error.

Perhaps it's time for yet another clean install of XP. The joys of Beta software.

# Sanjay Nagamangalam - MSFT said on August 28, 2007 3:38 PM:

It is not possible to generate database tables from the model in this tools CTP. We are looking to add this functionality in a future release

# Francesco said on August 28, 2007 4:58 PM:

I have some problems with this tools CTP.

If I generate a model from database, tables with inheritance are linked with association, not with inheritance.

If I try to delete the association and set the base class for inherited ones, I get a lot of entity mapping errors on various relations.

Is this a known issue?

I'm very excited about Entity Framework so I would like to understand and use it as soon as possible.

# Jung-Hwan, Woo. said on August 28, 2007 7:16 PM:

URL Changed

The Entity Framework Beta 2 & Entity Framework Tools Docs can be found here.==>

http://msdn2.microsoft.com/en-us/library/bb399572(vs.90).aspx

^^

Have a nice day!!!

# どっとねっとふぁんBlog said on August 28, 2007 10:37 PM:

Entity Framework Beta 2 &amp; the 1st Entity Framework Tools CTP Released! Entity Frameworkのベータ2がリリースされたようです。個人的には製品がでてくるまで静観してたんでいいかなー、と思いはじめた技術なので、進捗状況をチェックのみ。.NET...

# bkchung's WebLog said on August 28, 2007 10:43 PM:

ADO.NET team blog : Entity Framework Beta 2 &amp; the 1st Entity Framework Tools CTP Released! (소식) Download

# Noticias externas said on August 28, 2007 11:10 PM:

ADO.NET team blog : Entity Framework Beta 2 &amp; the 1st Entity Framework Tools CTP Released! (소식) Download

# Tonio's developper .NET Blog said on August 29, 2007 3:15 AM:

Comme l'équipe ADO.NET l'avait annoncée précédemment, les téléchargements de l' Entity Framework Beta

# Brian C. Barnes said on August 29, 2007 11:50 AM:

After adding the entity data model to an existing project, I try to set up a connection. I select SQL Server, choose the local machine as the server, and I can browse for the database. I test the connection, and it tests fine. When I click "OK", I get the error message: "This server version is not supported. Only servers up to Microsoft SQL Server 2005 are supported.".

I thought this was supposed to be one of the new big things about SQL Server 2008? It really doesn't support SQL Server 2008 yet?

# Pablo Castro's blog said on August 29, 2007 11:51 AM:

Visual Studio Orcas Beta 2 shipped a few weeks ago and folks have been asking how to work with the Entity

# Giuseppe Guerrasio said on August 29, 2007 12:53 PM:

Rilasciata la beta 2 dell'Entity Framework installabile sulla Beta 2 di Visual Studio 2008.Informazioni

# ひろえむの日々是勉強 said on August 29, 2007 6:11 PM:

ADO.NET Entity Framework Beta 2とADO.Net Entity Framework Tools Aug 07 CTPが公開されています。

# Gerald Fischer said on August 30, 2007 9:34 AM:

I get the same error as mentioned  above. Any solution, other then reinstalling?

Error:

Package Load Failure

Package 'Microsoft.Data.Entity.Design.Package.MicrosoftDataEntityDesignPackage, Microsoft.Data.Entity.Design.Package, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has failed to load properly ( GUID = {8889E051-B7F9-4781-BB33-2A36A9BDB3A5} ). Please contact package vendor for assistance. Application restart is recommended, due to possible environment corruption. Would you like to disable loading this package in the future? You may use 'devenv /resetskippkgs' to re-enable package loading.

# Alex Barnett blog said on August 30, 2007 10:33 AM:

Some old Data Programmability teammates of mine, Britt Johnston, Pablo Castro and Mike Pizzo (well, Mike

# Brian C. Barnes said on August 30, 2007 2:58 PM:

re: SQL2008 not supported - further searching reveals that VS2008 beta 2 in general does not support SQL2008. I would think that this would be a big problem with getting both of these products reasonable testing.

# From the software development trenches said on August 31, 2007 1:27 AM:

Time for another weekly roundup of news that focuses on .NET and general development related content

# MikeH2005 said on August 31, 2007 5:20 AM:

Does ADO.NET EDM support SQL Server Compact Edition 3.5?

It seems it only provides support for SQL2005? Is there any tweak to get the thing running?

Will the RTM support SQLCE 3.5?

# chauey said on August 31, 2007 3:33 PM:

Interesting.. I do not like some of the API though... it can be made to be more intuitive.... objectQuery.First() and objectQuery.Exists() should be properties, not methods.. and Exists would be more clear if it said ResultsExists... If want to keep as method, the First() should get GetFirst()..

Also, when I copied and pasted the EDM files to a new project, I had to manually set the Custom Tool property of the .edmx file to "EntityModelCodeGenerator".. but the files did not get associated properly to each other (I had to drag the files to a new direcory, only then did the Designer.cs file get attached to the edmx file).  Also, building did not create the 3 .csdl, .msl, .ssdl files in the bin/debug directory.. what part am i missing if i want to manually copy the EDM files over? tks

-chauey

# chauey said on August 31, 2007 3:42 PM:

How will LINQ and EF each handle lazy loading (eager loading?) and what are the best practices/pitfalls?

# Chas said on September 2, 2007 1:01 PM:

Today it looks like it can only auto generate entities from tables and views. But waht about Sprocs? Why can I not seem to get a entity representation for a sprocs that returns a resultset. I have this same problem with LINQ to SQL. This is a big missing piece and hopefully will not be ignored.

Thanks!

# Alexander said on September 3, 2007 6:56 PM:

I'm also very interested about "Events to customize code generation". Can I find more information about that somewhere?

# jkowalski said on September 4, 2007 11:59 AM:

Alexander: See Danny's blog post about CodeGen events here:

http://blogs.msdn.com/dsimmons/archive/2007/09/01/ef-codegen-events-for-fun-and-profit-aka-how-to-add-custom-attributes-to-my-generated-classes.aspx

# Development 4.0 said on September 4, 2007 2:07 PM:

Entity framework Beta 2 (with tools) released

# pcsql said on September 4, 2007 8:58 PM:

Is there any recommendation/guideline in developing an application using the features which will be released in VS2008 so that a migration to Entity Framework will be smoother?  

# Pablo Castilla said on September 9, 2007 6:20 PM:

A little feedback.

Today I have been playing with it. I think it is very very good, the model designer is easy to use and you can learn fast how to use it. Inheritance is really cool.

But I would like to request something that I think it would be nice for developers and very easy to implement.

As I see Entities are concentrated in the data, are like classes but only in its data field. If you want to add functionality (functions) to the entities you need to implement a parcial class manually. I propose you to put another +: we have +scalar properties, +navigation properties and you could put functions into another+. Automatically designer will put that functions in a partial class out of the .designer (like c# events in windows forms, our functions are into a partial class and the delegates, window structure are in the .designer). That functions will be implemented for programmers to provide functionality to the entities.

Well, that's just a request for a very good product. Entities are really good, and playing with them using linq is fantastic!!

# acatellani said on September 13, 2007 10:01 PM:

Late but... I'm already testing this tools. They're really great!!! I've using NHibernate and this is much easier to use... i'm trying to pass an old NH project to EMD to give some feedback to you.

See u!!

Agustín Mariano Catellani

# BonzBlog Michaela Juřka said on September 17, 2007 3:07 PM:

Poslední reinkarnace LINQu, o které jsem se zmínil v přehledovém článku , je LINQ to ADO.NET Entities,

# BonzBlog Michaela Juřka said on September 17, 2007 3:09 PM:

Poslední reinkarnace LINQu, o které jsem se zmínil v přehledovém článku , je LINQ to ADO.NET Entities,

# Dennis said on September 21, 2007 2:46 AM:

The tools package doesnt install for me. It complains vs 2008 beta 2 is not installed, but that is working flawlessly. If I trace the regdb activity I can see the last thing the installer does is check for the install key of the 3.5 .NET framework, which exists just fine and yet it still says it is not installed.

# Jeffrey Firestone said on September 21, 2007 4:42 PM:

There should be an easy way to update an Entity Mapping or model when the mapped database changes.  The only way I have found so far is to delete and then recreate the entire EDMX entity model.  That is actually a step back from working with Data Source (XSD) Schema files.

# Walter said on October 9, 2007 7:09 AM:

In addition to all of the above there can be wild data type changes on the fields like float -> decimal, integer -> float, etc. Also name changes for tables and fields.

# Walter said on October 9, 2007 7:11 AM:

The EDM mapper fails when tables don't have primary keys.  In addition to the intended model the database can contain "temporary tables", load tables, trash tables and also can lack constraints, have mistakenly designed constraints.

# Walter said on October 9, 2007 7:38 AM:

I need a way to maintain a list (in the Entity Model browser of VS) of the good things in my database: good tables, good views, good constraints, good stored procedures, etc. I guess what I'm saying is that it would be convenient to load all the selected (in the wizard) tables, views, sps available on the database. And the tool when it finds a bad one (no constraints or other errors) should not load it but must continue processing without stopping. And after that be able to edit the contens of the "Store" section on the "Entity Model Browser" in VS. In the "Store" section I would like to be able to: delete the items I want, "refresh" the items listed in the store, through a panel/wizard go back to the db and choose items to load. And after all that magic is done, I want to be able to tell the Entity Framwork mapping tool to regenerate the C# classes.

# Sergey said on November 13, 2007 11:03 AM:

Hello,

Toolkit doesn't work on my Orcas Beta2 under Windows Longhorn CR1 x86.

Wizard closes automatically when i try to create new connection to my DB.

# Tony said on November 21, 2007 4:03 PM:

Hi,

When will be get a new version for VS2008 RTM?

# 24100.net said on November 23, 2007 5:06 AM:

install entity framework tools on vs 2008 rtm

# Todd Davis said on November 23, 2007 7:34 PM:

When I try to create a new connection, the wizard closes, just like the person above said. I have the release version of VS 2008, and a fresh download of the toolkit. No warning, no error message, the wizard dialogue just goes away.

# Todd Davis said on November 23, 2007 10:00 PM:

BTW, just as a followup - clicking on ANY button (such as the Previous button) closes the Wizard. If anyone fixes this or has a suggestion, please contact toddhd@gmail.com

# Ryan said on November 27, 2007 6:35 PM:

When will a version of ADO.NET Entity be released to work with the release versions of VS 2008?

# JA said on November 29, 2007 4:41 PM:

Hi,

When I copy the edmx file to a new class library project and build it doesn't generate the .csdl etc.. in the output dir. any ideas why? i've manually set 'custom tool' option for the edmx file to 'EntityModelCodeGenerator'.

Somebody else has asked this ques above also.

any pointers would be greatly appreciated.

Thanks

# JA said on November 29, 2007 4:51 PM:

I've just found the answer to my ques from earlier

"When I copy the edmx file to a new class library project and build it doesn't generate the .csdl etc.. in the output dir. any ideas why? i've manually set 'custom tool' option for the edmx file to 'EntityModelCodeGenerator'."

Ques:

When manually copying an edmx file to a new project

Answer:

1) solution explorer > click on the EDMX file > 'custom tool' = 'EntityModelCodeGenerator'

This auto re-generates the class from the EDMX file (CSDL more accurately i think)

2) project properties > compile > click 'build events' > 'edit post-build' and paste the following including all double-quotes

"%windir%\Microsoft.NET\Framework\v3.5\EdmxDeploy.exe" "$(ProjectDir) " "$(TargetDir) "

this re-generates the .csdl etc. into the output dir on project build.

hope this helps somebody.

Thanks

# Rich Harrigan said on December 24, 2007 2:03 PM:

I am using Entity Frameworks Beta 3.  In the AdventureWorks database the generated ssdl may have an error in the EntitySet tag.  It is missing a Schema tag for Production tables.  Interstingly the Container name is Production.   Is this something that will change in the released version?  Likewise in the Nortwind database no schema tags exist in the EntitySet tags and the Container name is "dbo".

email: RichHarrigan@hotmail.com.

# 생활지혜 said on January 1, 2009 5:59 AM:

실내 온도를 빨리 올리고 싶다면 가습기를 튼다

외출 후 돌아와서 집이 추울 때 보일러 온도를 무작정 높이지 말고 적당한 온도로 맞춘다.

대신 가습기를 틀어 집에 습기를 더한다.

보일러를 작동시키면 바닥이 덥혀지면서 집이 따뜻해지는데,

습도가 높으면 공기 순환이 빨라져 집이 빨리 데워지는 효과가 있다.

출처:다음카페 생활의지혜!

Leave a Comment

(required) 
(optional)
(required) 
Page view tracker