If you are in a happy position to start from scratch, on a green pasture - by all means, spend the time you need to get to know the Entity Framework!
This is a great ORM - and a great performance assistant. EF can help you do the 80% case - capturing an object, manipulating it and saving it back to the database is just that simple!
using(MyDatabaseContext ctx = new MyDatabaseContext()) { Customer c1 = ctx.Customers.Find(4711); c1.Name = "Acme Inc.";
Is using your SQL database as easy as that? It can't be that hard to master for Delphi developers! Delphi and the .NET Framework are actually very similar (duh !, the same guy created them, mostly .....), and switching to .NET from Delphi is very simple and very natural (I took this step a couple of years ago) - much easier than for the developer of the old VB6 actually ....
Go read in the Entity Framework - start with the Absolute Entity Framework Beginner's Guide ! EF only cares that there are too many stupid and boring “glue codes” that you don’t need to write anymore ........
Also: using EF does not mean that you can no longer use SQL - for certain tasks, such as bulk operations, SQL is still the best choice. If you need to, at least with EF in .NET 4, you can even attach stored procedures where it requires performance or other problems. It works like a charm!
Find a lot of information about the Entity Framework (white papers, examples, videos) at the MSDN Entity Framework Developer Center
source share