Skip to main content

Posts

Showing posts from May, 2013

Entity Framework benefits and liabilities compare to NHibernate

Entity Framework is one of the most popular ORM framework on the .NET world, it enables to work with relational data using domain-specific objects and eliminates the need for most of the data-access code. EF 1 came out with .NET 3.5, EF 5 released targeting .NET Framework 4.5 and is now on EF 6 alpha3. For Entity Framework, the ObjectContext or DbContext holds the configuration, model and acts as the Unit of Work, holding references to all of the known entity instances. Below are few of the Entity Framework benefits and liabilities compare to NHibernate: Benefits: Entity Framework and NHibernate both default to change tracking at the unit of work level, also offers self-tracking entities. Entity Framework of has close integration ties with Visual Studio and various ASP.NET and WCF libraries. Entity Framework has a great LINQ support Entity Framework is superior on documentation and NHibernate lacks and need to synchronize with an up to date API reference with its current vers...

sqlproj is not supported by this version error

Today I have got "sqlproj is not supported by this version" error while opening my solution in Visual Studio 2010. The reason was I have installed VS 2012, while migration the database project extension got changed from *.dbproj to *.sqlproj. Basically VS 2012 converts .dbproj files into .sqlproj files, which VS 2010 can’t open. To resolve the issue of *.sqlproj interoperability, install the SQL Server Data Tools (SSDT) for VS 2012 and VS 2010. You can download the SSDT from  http://msdn.microsoft.com/en-us/data/hh297027