asp.net mvc - Is there a tool to automatically generate view models from domain models? -
i'm using ado.net dbcontext generator generate domain objects entity model. there tools can generate view model each of domain objects? adding data annotations, [required], [displayname] , [datatype], view model properties nice too.
i'll adding these generated view models build more complex view models @ least tedious work automated.
asp.net mvc 4 rc
thanks!
no, there no such tools. define view models. tool cannot possibly know how views , information contain. remember view model projection of multiple domain models. tool can generate models existing database schema, there's no such thing view models. design left ingenuousness of developer , imho that's better.
Comments
Post a Comment