views:

106

answers:

3

I have used code like this: http://msdn.microsoft.com/en-us/library/dw70f090.aspx to access database before when working in ASP.NET (2-3 years ago). I didn't realize I was working with ADO.NET.

I am just a bit confused...is there another way data in a database can be accessed? How else would you do it?

+3  A: 

It's possible to write code against a database using a non-ADO.NET interface. For example, SQLite provides a C api which one could program against. It's very unusual though. ADO.NET provides a standard interface so if all providers implement these interfaces it's much easier for developers to use.

Sam
+2  A: 

You can use EnterpriseLibrary but I think it is also based on ADO.Net. You can also write data access assembly on other languange and add it as reference on your .Net project.

Jojo Sardez
+1  A: 

you can use linq to sql for accessing database in newer version of .net.

masoud ramezani
That is still based on ADO.NET
Jonathan Allen