Domain Model Mvc
In fact in asp net mvc there are three distinct types of model.
Domain model mvc. Business state is controlled and used here but the technical details of storing it are delegated to the infrastructure layer. The main purpose of the model is to perform operations on that and render on the view save to the database. Represents concepts of the business information about the system situation and business rules.
Basically domain model consist of those attributes for an entity which qualifies it in the real world in the context of a particular domain in this case human resource. Actually the word model has hundreds of meanings in software development but here we will talk about model in the context of a mvc design pattern. The model contains core application information.
We ve inherited from the original mvc pattern a rather simplistic idea of what should be in the model. The domain model view model and input model. In mvc terms this is the model.
Tiap tiap bagian ini memiliki fungsi yang berbeda beda dan saling berkaitan. Represents concepts of the business information about the system situation and business rules. In the asp net core application the model could mean many things depending on the what are you trying to do.
It includes data validation rules. Business state is controlled and used here but the technical details of storing it are delegated to the infrastructure layer. In the context of asp net core mvc apps the model could be a domain model view model or an edit model.
Domain layer model in mvc. The model is an object using that we can pass the information data to the database. What is model or domain model.