I am currently working on an ASP.NET MVC project.
Some developers on the team want to bind the auto-generated database entities directly to the Views.
Other developers want to create tailor-made ViewModel's and bind those to the Views.
Objectively, what are the pros and cons of both approaches?
(By "database entities" I am referring to the auto generated classes that an ORM framework generates, such as LINQ to SQL, Entity Framework or LLBLGen).
question from:
https://stackoverflow.com/questions/10928287/asp-net-mvc-database-entities-or-viewmodels 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…