I'm going to be starting a new project with ASP.NET and I would like to use some framework which speed up the process. Recently I have heard that there are two main frameworks in that platform: the MVC and the Entity framework. Are they compatibles? If not, what are your advices on what to use and why? What are they best properties?
-
You're comparing apples to oranges. Did you mean ASP.NET MVC compared to WebForms? Entity Framework should be compared to Linq To Sql, not MVC.Agent_9191– Agent_91912009-11-13 12:26:16 +00:00Commented Nov 13, 2009 at 12:26
-
1I would disagree Apples and Oranges are both fruits, so you are realistically saying they are a variation of the same thing :PJames– James2009-11-13 12:31:47 +00:00Commented Nov 13, 2009 at 12:31
-
In the same way that Asp.net mvc and entity are both frameworks :pJimmeh– Jimmeh2009-11-13 12:33:53 +00:00Commented Nov 13, 2009 at 12:33
-
I didn't know. Actually I thought they had the same purpose, like they were green and red apples.Alfre2– Alfre22009-11-13 12:38:48 +00:00Commented Nov 13, 2009 at 12:38
-
Entity is like the handler for data access , and aspnet mvc is the frame worktuanvt– tuanvt2009-11-13 14:24:45 +00:00Commented Nov 13, 2009 at 14:24
7 Answers
MVC is an architectural pattern to build applications; entity framework is a object relational mapping framework. Quite different animals.
And yes, they can be used together, no problem.
2 Comments
ADO.NET Entity Framework is an object-relational mapping (ORM) framework for the .NET Framework. http://en.wikipedia.org/wiki/ADO.NET_Entity_Framework http://msdn.microsoft.com/en-us/library/aa697427(VS.80).aspx
Other entitty frameworks are -> LINQtoSQL, NHibernate etc.
Model–View–Controller (MVC) is an architectural pattern used in software engineering. http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller http://en.wikipedia.org/wiki/ASP.NET_MVC_Framework
Comments
You can use both of them into a single project.
Entity framework is object-relational mapping (ORM) framework. It is an enhancement to ADO.NET that gives developers an automated mechanism for accessing & storing the data in the database.
Model-View-Controller (MVC) is an architectural pattern that separates an application into three main logical components: the model, the view, and the controller.