Good day! I have a couple of questions a question related to models in asp.net mvc.
The first question. Suppose I have some kind of database. I access it through the Entity Framework. This library generates classes for my tables that I can then use. But then the question arises: what about the model? If you use these generated entities as models, then I cannot either change them (for example, add attributes for validation) because these entities are automatically generated and cannot be edited in general. And if you create your own models, then in 90% of cases it will turn out that these models will be wrappers over the above entities from Entity, since the database mainly stores data reflecting models.
And now the second question. In essence, these models are DTOs, that is, simply objects containing only data. And what about the logic of processing this data? Should it be in controllers? But as far as I know the controllers in Asp.net mvc should be "thin", that is, do not contain any special logic. Or should we also write additional controllers in which the logic of working with models will be concentrated? How can you tell me knowing people!