开发者

Differences between ASP.NET MVC framework and Entity Framework

I'm going to be starting a new project with ASP.NET and开发者_如何学Python 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 can't compare them. These are 2 different things.

Entity framework is ORM mapper, Asp.Net Mvc is a framework that helps building web applications.

Actually - they even aren't mutually exclusive and you can use them both together quite nicely.


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.


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


They're different things entirely.


Although they're different things entirely they are compatible. I am using both frameworks on a project now.


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.


These are 2 different things as mentioned before.

Entity Framework is an ORM -> a Mapper to help you get data.

asp.net is a framework to STRUCTURE your project ,with Objects and Classes, not related to entity.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜