Is ADO .NET is ORM if not then what is this ? is it a .NET framework which helps to intract with database and part of .NET ?
Loading
Is ADO .NET is ORM if not then what is this ? is it a .NET framework which helps to intract with database and part of .NET ?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sachin SinghRank #66 · 26.2K reputationPosted Mar 2, 2022, 9:15 AM EST
Mahesh ChandRank #1 · 393.3K reputationPosted Mar 2, 2022, 8:58 AM EST
Gajendra JangidRank #157 · 14.9K reputationPosted Mar 26, 2022, 10:46 PM EDT
ADO.NET provides consistent access to data sources such as SQL Server and XML, and to data sources exposed through OLE DB and ODBC. Data-sharing consumer applications can use ADO.NET to connect to these data sources and retrieve, handle, and update the data that they contain.
ADO.NET separates data access from data manipulation into discrete components that can be used separately or in tandem. ADO.NET includes .NET Framework data providers for connecting to a database, executing commands, and retrieving results. Those results are either processed directly, placed in an ADO.NET DataSet object in order to be exposed to the user in an ad hoc manner, combined with data from multiple sources, or passed between tiers. The DataSet object can also be used independently of a .NET Framework data provider to manage data local to the application or sourced from XML.
Ashwani Chaudhary171 reputationPosted Mar 2, 2022, 12:54 PM EST
Can i call it as framework which made up of many classes which specially helps to connect to database and if we talk about Entty framework ....is it kind of a wrapper in ADO.NET ? where we do not need to write any commands like
SqlConnection con = new SqlConnection("data source=.; database=Sample; integrated security=SSPI");
SqlCommand cmd = new SqlCommand("Select * from tblEmplpoyee", con);
con.Open();
SqlDataReader rdr = cmd.ExecuteReader();
GridView1.DataSource = rdr;
GridView1.DataBind();
con.Close();
and DBContect class takes all above code responsiblities.
I have one more question regarding DBContext class and DBContextOptions class
what is use of DBContextOptions and what we are doing with DBContextOptions
Public Class ApplicationContext : DBContect
{
ApplicationContext(DBContextOptions _options) : base (_option)
{
}
}