A visual studio plugin for generating DTO objects from entities
-
Right click any entity (cs class) and choose option "Generate DTO"
-
Pick a location - if any existing DTOs are found, most likely location will be selected. Otherwise, select location in format PROJECTNAME/Folder/SubFolder. For example, Grader.DAL/Generated/Dto or Grader.DAL/Dto
-
Pick properties from entities that you want to map
-
Add any custom code between ////BCC/ BEGIN CUSTOM CODE SECTION and ////ECC/ END CUSTOM CODE SECTION. Any custom code will be preserved upon regeneration.