Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does .net still use ADO.net?

Im using .net 4.0 and when I talk to a database using SqlConnection class etc is this still ADO.net or has that dinosaur died?

like image 716
Exitos Avatar asked Jul 12 '11 17:07

Exitos


4 Answers

ADO.Net is alive and well. Just about every ORM out there for .net is built on it so it's not going away anytime soon.

like image 145
NotMe Avatar answered Sep 19 '22 09:09

NotMe


The SqlConnection class is derived from the DBConnection class, which is part of the System.Data.Common namespace (i.e. ADO.NET).

As others have pointed out, ADO.NET is the foundation on which Linq to SQL and the Entity Framework are built. ADO.NET has not been replaced, it's just been enhanced and built upon.

like image 41
Robert Harvey Avatar answered Sep 21 '22 09:09

Robert Harvey


Yes. In fact, ADO.NET is more integrated with new language features and technologies than ever before. Linq to SQL and Entity Framework sit on top of and use ADO.NET to interact with databases, for example.

like image 24
Kyle Trauberman Avatar answered Sep 18 '22 09:09

Kyle Trauberman


That dino's not dead...

http://en.wikipedia.org/wiki/ADO.NET

The ADO.NET Entity Framework is a set of data-access APIs for the Microsoft .NET Framework, similar to the Java Persistence API, targeting the version of ADO.NET that ships with .NET Framework 4.0.

like image 35
Michael Fredrickson Avatar answered Sep 18 '22 09:09

Michael Fredrickson