I am using NHibernate for persistence and my domain model is mapped. I am using MVC2 And I'm eager to use model recognition for all basic assumptions (string length, range, etc.).
The problem is that I am aware that there is a huge amount in it. In this work I have 26 POCO squares that represent the domain. This means that I need to have around 5 x 26 = 130 visual modals (create, edit, view, list, delete), I'm going to use ViewModels everywhere. To create and maintain 130 ViewModels, consider that my domain objects are already mapped, they look useless.
Now I have bought this idea that it is a good way to develop this approach to keep it as mute, as far as possible, eliminate the security guards related to sight etc. To be honest I get a strong impression, I am lacking this tool or technique which will speed up the process.
Is there any way to reduce this pain?
I'm not sure why you need 5 View Models? View MODALLS just want to show you (in view):
Let us know that you have these related entities:
BlogArticle tag classname You have three entities, but by the form you create blog articles, choose the tag and then select a category on one page.
On the BlogArticle forming form you just want ViewModel to be the following:
BlogArticleViewModel + String BlogTitle + String Blog Content + String tagname // can be mapped to text box You can use the checkbox + string category name // as above You can use the model to view in the modell.
Comments
Post a Comment