When I retrieve data from database I name the class as
Model, for example
When I send data to the View I name the class as
ViewModel, for example
How to name the class that exchange data between layers?
Software Engineering Stack Exchange is a question and answer site for professionals, academics, and students working within the systems development life cycle. It only takes a minute to sign up.Sign up to join this community
My suggestion is to omit the 'Model' suffix from your main class. I have seen 'DataTransport' or 'DT' classes, but generally you shouldnt need a separate class for this.
or in an api where you send data over the wire