ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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
تم إضافة السؤال من قبل qasim nawaz , Seninor Web/Software Developer , CITC COMSATS Institute of Information Technolgy Lahore
تاريخ النشر: 2017/01/18
qasim nawaz
من قبل qasim nawaz , Seninor Web/Software Developer , CITC COMSATS Institute of Information Technolgy Lahore

Thanks to all for given answer

Abdelrahman Iqbal
من قبل 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
من قبل 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
من قبل Naveed Khalid , computer programmer , Alnahda national Schools

Entity Frame work is better option

Salem Al Badawi
من قبل 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

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟