ADO.NET Entity Framework 4.1 Update 1 Now Available for Download

In April this year, Microsoft released the Entity Framework 4.1 (EF 4.1), now after three months the Redmond company has announced of releasing Entity Framework 4.1 - Update 1.This is a refresh of the EF 4.1 release that includes a small number of bug fixes and some new types to support the upcoming migrations preview:"Bug […]

In April this year, Microsoft released the Entity Framework 4.1 (EF 4.1), now after three months the Redmond company has announced of releasing Entity Framework 4.1 - Update 1.

This is a refresh of the EF 4.1 release that includes a small number of bug fixes and some new types to support the upcoming migrations preview:

"Bug fix to remove the need to specify 'Persist Security Info=True' in the connection string when using SQL authentication. In the EF 4.1 release 'Persist Security Info' was required for Code First to be able to create a database for a connection using SQL Authentication," a member of the ADO.NET team stated.

"The update includes a fix to remove this requirement. Note that 'Persist Security Info' is still required if you construct a DbContext using a DbConnection instance that has already been opened and closed."

In addition to resolving problems reported by customers, the Redmond company has also introduced new features with the refresh.

Essentially, ADO.NET Entity Framework 4.1 Update 1 includes a couple of new types which support design-time tools for Code First. The two new types are:

"DbContextInfo can be used to instantiate and interact with a derived context as well as determine information about the origin of the connection string etc.

"IDbContextFactory<TContext> is used to let DbContextInfo know how to construct derived DbContext types that do not expose a default constructor. If your context does not expose a default constructor then an implementation if IDbContextFactory should be included in the same assembly as your derived context type," the ADO.NET team representative added.

Entity Framework 4.1 - Update 1 is available in a couple of places:

  • Download the stand alone installer
  • Add or upgrade the 'EntityFramework' NuGet package
    Note: If you have previously run the EF 4.1 stand alone installer you will need to upgrade or remove the installation before using the updated NuGet package. This is because the installer will add the EF 4.1 assembly to the Global Assembly Cache (GAC). When available the GAC'd version of the assembly will be used at runtime.
    Note:
    The NuGet package only includes the EF 4.1 runtime and does not include the Visual Studio item templates for using DbContext with Model First and Database First development.

Getting Started with EF 4.1

[Source: ADO.NET team blog]