Code through the pain Ladislav Mrnka's professional blog about software development

13Apr/110

ADO.NET team yesterday released final version of Entity Framework 4.1. It is again available as stand alone download or NuGet package. This version doesn't contain any API changes except changed default maximum length for string properties mapped with the code first approach. EF 4.1 RC used nvarchar(128) as default SQL type for all string properties. This caused some issues to many developers who didn't know how to change it. ADO.NET team also received some feedback and because of that the default value for a length of string properties was changed to Max for SQL Server and to 4000 for SQL Compact. That is in my opinion the worst choice because now 90% of databases created with the code-first approach will have all string columns defined as nvarchar(max).

Posted on April 13, 2011 by Ladislav Mrnka
Filed under: Entity framework
Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.