Gallery in my projects
.Net MVC | I use the structure below.Entity Framework`.
My projects, are with
entities, is the classes that I use in
My question is: When it is used
DISC and if they can have methods?
Clarification of the problem
I have class person (https://pastebin.com/PaESUA8q) and I create the class client (Https://pastebin.com/5Ln24USx)
that has a property PessoID and "Person * as a ForeignKey and has the PessoaDTOto show the data visually more easily
and not take charge include in DbContext.
I have other "DTO" like this UserLoginDTO (https://pastebin.com/FrC541C4), which is used in the view to log on to the system.
And I have others like this ElementoComboBoxDTO, ItemComboBoxInteroDBDTO, ItemComboBoxTextoDBDTO (Https://pastebin.com/2ZU2aXad)
which are to save the data of a list and generate a SelectList.
Sell, a little more thoroughly, I think ElementoComboBoxDTO, ItemComboBoxInteroDBDTO, ItemComboBoxTextoDBDTO they can be only a model.
the PessoaDTO this right? Can you have methods to popularize the data? If it is not a DTO, what would it be? ViewModel? Hélder?
insert the description of the image here