Using ADO.NET

When Microsoft first created .NET, it had one data access technology, and it was named ADO.NET. Since then, Microsoft has added additional technologies but reused the name ADO.NET, so it can get confusing. The following are your two main choices today:

  • ADO.NET: This is the original .NET data access technology that has classes that inherit from abstract base classes such as DbConnection and DbDataReader. I often refer to this as classic ADO.NET.
  • ADO.NET Entity Framework: This is a layer on top of ADO.NET that adds object-relational mapping (ORM) capabilities. I often refer to this as Entity Framework or just EF.

Tip

Both are supported on .NET Core. Use classic ADO.NET for performance, to maintain existing code that already uses it, and ...

Get C# 6 and .NET Core 1.0: Modern Cross-Platform Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.