ADO.NET Data Services: ADO.NET Data Services is a set of classes and interfaces that provide a common data access layer for ASP.NET MVC applications. ADO.NET Data Services can be used to access data from a variety of sources, including relational databases, XML files, and web services.
NHibernate: NHibernate is an open source object-relational mapper (ORM) that can be used to map objects to database tables. NHibernate provides a number of features that make it an attractive choice for data access in ASP.NET MVC applications, including lazy loading, caching, and transactions.
Dapper: Dapper is a micro ORM that provides a simple and lightweight way to access data from a database. Dapper is designed to be fast and efficient, and it can be used to access data from a variety of database providers.
Raw ADO.NET: Raw ADO.NET refers to the use of the ADO.NET API directly to access data from a database. Raw ADO.NET can be a powerful tool for data access, but it can also be complex and error-prone.
The best approach for data access in ASP.NET MVC will depend on the specific requirements of the application. For example, if the application needs to access data from a variety of sources, ADO.NET Data Services may be a good choice. If the application needs to use a specific feature, such as lazy loading, NHibernate or Dapper may be a better choice. If the application needs to be as lightweight and efficient as possible, raw ADO.NET may be the best choice.
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
There are many different approaches for data access in ASP.NET MVC, apart from Entity Framework. Some of the most popular approaches include:
The best approach for data access in ASP.NET MVC will depend on the specific requirements of the application. For example, if the application needs to access data from a variety of sources, ADO.NET Data Services may be a good choice. If the application needs to use a specific feature, such as lazy loading, NHibernate or Dapper may be a better choice. If the application needs to be as lightweight and efficient as possible, raw ADO.NET may be the best choice.