News

Microsoft Releases Another Preview of Entity Framework 5

The Release Candidate of Microsoft's object-relational mapping framework for .NET is available via NuGet.

Microsoft has made several changes to ADO.NET Entity Framework 5 since the Beta 2 release, which has lead to another preview before the RTW, according to the company. The Entity Framework 5 Release Candidate, released on Tuesday, is available via NuGet, the open source package manager for the .NET Framework.

The latest preview of Microsoft's object-relational mapping framework adds a CommandTimeout property to DbMigrationsConfiguration and updates Code First, so that developers can add tables for the Entity Data Model to existing databases, as needed. The Release Candidate also fixes several bugs that were discovered in Beta 2. The ADO.NET team blog about the Release Candidate offers details on the bug fixes and new features. The Entity Framework 5 RC can be used in production environments with some restrictions.

Entity Framework 5 follows Entity Framework 4.3, which was released on February 9, 2012 and enabled Code First Migrations. The decision to go directly to EF 5 (instead of 4.5 in line with the upcoming .NET Framework versioning) was made because important APIs continue to ship out of band, according to Microsoft. The company began to use "Semantic Versioning," which is based on technical requirements, starting with Entity Framework 4.2.

Separating Entity Framework updates from the .NET Framework release schedule has proved challenging, however. The Entity Framework core libraries remain part of the .NET Framework (System.Data.Entity.dll, System.Data.Entity.Design.dll, System.Web.Entity.dll) and are updated accordingly. Entity Framework 5 offers support for several features based on those updates, including enum types, spatial types, table-valued functions, stored procedures with multiple results and auto-compiled LINQ queries.

The Visual Studio 11 and .NET Framework 4.5 betas were released on February 29, 2012. Updates to the tooling are expected in the same timeframe as Windows 8. According to Microsoft, the Windows 8 Release Preview is slated for the first week of June.

Like Entity Framework 4.2 and 4.3, version 5 will be released via NuGet only (no MSI installers), according to Microsoft. The Entity Framework RC NuGet package is compatible with the Visual Studio 11 beta, Visual Studio 2010 and .NET Framework 4.5/4. However, new Entity Framework 5 features such as enums, spatial data types and table-valued functions require .NET 4.5.

About the Author

Kathleen Richards is the editor of RedDevNews.com and executive editor of Visual Studio Magazine.

comments powered by Disqus

Featured

  • Full Stack Hands-On Development with .NET

    In the fast-paced realm of modern software development, proficiency across a full stack of technologies is not just beneficial, it's essential. Microsoft has an entire stack of open source development components in its .NET platform (formerly known as .NET Core) that can be used to build an end-to-end set of applications.

  • .NET-Centric Uno Platform Debuts 'Single Project' for 9 Targets

    "We've reduced the complexity of project files and eliminated the need for explicit NuGet package references, separate project libraries, or 'shared' projects."

  • Creating Reactive Applications in .NET

    In modern applications, data is being retrieved in asynchronous, real-time streams, as traditional pull requests where the clients asks for data from the server are becoming a thing of the past.

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

Subscribe on YouTube