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

  • Hands On: New VS Code Insiders Build Creates Web Page from Image in Seconds

    New Vision support with GitHub Copilot in the latest Visual Studio Code Insiders build takes a user-supplied mockup image and creates a web page from it in seconds, handling all the HTML and CSS.

  • Naive Bayes Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the naive Bayes regression technique, where the goal is to predict a single numeric value. Compared to other machine learning regression techniques, naive Bayes regression is usually less accurate, but is simple, easy to implement and customize, works on both large and small datasets, is highly interpretable, and doesn't require tuning any hyperparameters.

  • VS Code Copilot Previews New GPT-4o AI Code Completion Model

    The 4o upgrade includes additional training on more than 275,000 high-quality public repositories in over 30 popular programming languages, said Microsoft-owned GitHub, which created the original "AI pair programmer" years ago.

  • Microsoft's Rust Embrace Continues with Azure SDK Beta

    "Rust's strong type system and ownership model help prevent common programming errors such as null pointer dereferencing and buffer overflows, leading to more secure and stable code."

  • Xcode IDE from Microsoft Archrival Apple Gets Copilot AI

    Just after expanding the reach of its Copilot AI coding assistant to the open-source Eclipse IDE, Microsoft showcased how it's going even further, providing details about a preview version for the Xcode IDE from archrival Apple.

Subscribe on YouTube

Upcoming Training Events