What is the difference between a MVC Model object, a domain object and a DTO?
My understanding is:
MVC Model object:
Models the data
Any definition for most of the objects is various based on place of using of objects:
Model: is a general definition for using object in client or server.
Model View: is a object using inclientmost of the time.Domain Object: is a object using inserverandtransfering data to the database.Data Transfer Object(DTO): is a object that transfer data from one object to another object, specially in getting data inAPI Call(for example: in api GET Method call for getting data you must not to give database models to client, for this purpose you usedto).Notice:
the definitions are true most of the timebut in some situations arent't practical.