Is it a bad practice using model classes in controller in mvc?
问题 I wanted to compare with best practices when working with an ORM or database tables in asp.net mvc. One of the major questions I have is should I instantiate the model classes directly in controller..not query the database but just use the model class to store the values. For e.g. If I am using entity framework as model...then is it a bad practice to use the entity class objects in the controller . There are times when it is just easier to directly use the database classes generated in the