Entity Framework 4.3.1 is a bug fixing patch release for Microsoft Entity Framework that includes some bug fixes to the 4.3 release.
Entity Framework 4.3.1 is a bug fixing patch release for Microsoft entity-framework that includes some bug fixes to the 4.3 release.
The changes in 4.3.1 compared to 4.3 include:
- Templates for using dbcontext with Model First and Database First have been renamed from ADO.NET DbContext Generator to EF 4.x DbContext Generator to easily distinguish between the EF 5.x DbContext Generator that is to be used for EF 5 applications.
- Added the ability to enable Code First Migrations against an existing database. Once this migration is generated Code First Migrations will correctly detect and scaffold changes to the model. It is now possible to use the –IgnoreChanges to tell Code First Migrations not to scaffold any code for this initial migration (i.e. ‘Add-Migration InitialMigration –IgnoreChanges).
- visual-studio-11 includes LocalDb rather than SQLEXPRESS. The EntityFramework nuget package will now check which database is available when the package is installed and use a configuration file setting to set the default database server that Code First databases will be created on. If SQLEXPRESS is running, it will be used. If SQLEXPRESS is not available then LocalDb will be registered as the default.
- Fixed issue where TPC mapping in Code First was generating “Unknown Columnname” exceptions when accessing the database.
- Fixed issue where hard coded column data types were not honored in generated databases. If you used the Column data annotation or HasColumnType Fluent API method to hard code a column data type (i.e. xml, money, etc.), this data type was not used when creating the database.
- Fixed issue preventing decimal columns from being configured with the ‘Identity’ store generated pattern.
- Better exception message when context/database initialization fails due to connectivity issues with the database.
- Enabled support for configsource in configuration files when using Code First Migrations.
- Fixed issues using Moq with DbContext.
Entity Framework 4.3.1 was released on February 29th, 2012.
Resources