When I retrieve data from database I name the class as Model, for example UserModel.When I send data to the View I name the class as ViewModel, for example UserSettingsViewModel.How to name the class that exchange data between layers?
How to name the classes that caries data to a different layer?
naming;naming standards
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.example classesDatabase Table : Userread into : DataReader (from db client)which populates : Userwhich populates : UserEditingViewModelwhich binds to : UserEditingViewor in an api where you send data over the wireDatabase Table : Userread into : DataReaderwhich populates : Userwhich is serialised to : string (json/xml)which is deserialised to : User