Generate extension methods for mapping DO models to DTO with t4 template
MapHelper.MapExtensionNameSpace = "ConsoleApplicationParceAttribute";
MapHelper.MapExtensionClassName = "MapExtensionsViewModel";
MapHelper.MapAttribute = "Map" // Map Attribute name
MapHelper.MapIgnoreAttribute = "MapIgnore"; // Ignore field Attribute name
MapHelper.DtoSuffix = "Dto"; // suffix for DTO classes - ignored when compare
MapHelper.DoSuffix = "ViewModel"; // suffix for DO classes - ignored when compare
MapHelper.DoProjects.Add("DataObject"); // list of projects with DO classes
MapHelper.DtoProjects.Add("DataTransferObject"); // list of projects with DTO classes
Example output mapping methods see here
you can map objects with code
var dtoObj = doObj.MaptToDto();