public static void PopulateTarget(this DtoGen.Sample_01.Model.User source, DtoGen.Sample_01.DTO.UserData target) { DtoGen.Core.PropertyConverter.EnsureInitialized(); target.Id = source.Id; target.Name = source.Name; target.Email = source.Email; target.Street = source.Street; target.City = source.City; target.ZIP = source.ZIP; target.State = source.State; target.Country = source.Country; target.TaxNumber = source.TaxNumber; }
public static DtoGen.Sample_01.DTO.UserData TransformToTarget(this DtoGen.Sample_01.Model.User source) { DtoGen.Core.PropertyConverter.EnsureInitialized(); DtoGen.Sample_01.DTO.UserData target = new DtoGen.Sample_01.DTO.UserData(); target.Id = source.Id; target.Name = source.Name; target.Email = source.Email; target.Street = source.Street; target.City = source.City; target.ZIP = source.ZIP; target.State = source.State; target.Country = source.Country; target.TaxNumber = source.TaxNumber; return(target); }