Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What is best practice for ASP.NET MVC development through Entity framework or ADO.NET? What are your opinions/suggestions for new developers?

user-image
Question ajoutée par qasim nawaz , Seninor Web/Software Developer , CITC COMSATS Institute of Information Technolgy Lahore
Date de publication: 2017/01/18

Entity Framework it's simple and effective 

Entity Framework  with linq methods makes easier and simple

qasim nawaz
par qasim nawaz , Seninor Web/Software Developer , CITC COMSATS Institute of Information Technolgy Lahore

Thanks to all for given answer

Abdelrahman Iqbal
par Abdelrahman Iqbal , Lead AS400 RPG Developer / Business Analyst / Misys Equation , Ahli United Bank

First of all, Entity Framework relies on ADO.NET for data operations.

 

Best practices recommend n-tier application architecture. That means you need to "usually" create three sets of classes, that is; data model, business logic, and presentation / view.  Entity Framework would automatically create the "data model" classes for you, then it provides you with tons of ADO.NET-based methods to handle your database through these classes.

 

Entity Framework, however, has some drawbacks in quality and limited capabilities, which puts you in front of some choices:

- You may search for suitable NuGet add-ins to resolve your issues.

- You may improve and extend its features.

- You can still use ADO.NET directly to bypass the issue. (I don't prefer it)

 

Therefore, whether you decided to use Entity Framework to create your data model, or you chose to create it your self, ADO.NET is part of the game after all.

 

Finally, it is recommended for fresh developers to rely on Entity Framework, because it would keep your code well organized, maintain several quality aspects, and saves you a lot of coding time. Later, as you get more experience with different problems and scenarios, you can choose your own path.

Suria Prakash Chellappa
par Suria Prakash Chellappa , Project Lead , iLink Multitech Solutions Pvt. Ltd

You can use some Micro ORM like Dapper or Insight Database, these two are simple, good and fast, since Entity Framework is heavy and takes more memory. If data grows it slow down the app.

Naveed Khalid
par Naveed Khalid , computer programmer , Alnahda national Schools

Entity Frame work is better option

Salem Al Badawi
par Salem Al Badawi , Web Developer , Electronic Company for High Technology

the business is what determines what you need to work with but if we  go to the performance the entity framework performance is better than the ado.net  

 

and you can use ado.net query through Entity FrameWork

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?