Saturday, 15 February 2014

asp.net mvc - When should I create a model in MVC? -


I'm just starting with ASP.NET mvc so far I like it a lot. I am trying to get up to speed but I need some explanation. I want to know when I should make a model for reasoning. I mean that many times I put my logic in a "master" model. I know that this is not the right way but then I am not completely sure that my model has unnecessary properties.

I think you are talking about ViewModels, and instead of being different, Perfect for the models, complicated models are repeating the properties. With the master model, it gets complicated under the road, however, for special cases such as customer customer and customer edit vim, I will make a low quality in the base class customer command and get it and for more readability, I will keep in Does this answer your question?

No comments:

Post a Comment