Example #1
0
 public static void PopulateSource(this DtoGen.Sample_01.DTO.UserData target, DtoGen.Sample_01.Model.User source)
 {
     DtoGen.Core.PropertyConverter.EnsureInitialized();
     source.Id        = target.Id;
     source.Name      = target.Name;
     source.Email     = target.Email;
     source.Street    = target.Street;
     source.City      = target.City;
     source.ZIP       = target.ZIP;
     source.State     = target.State;
     source.Country   = target.Country;
     source.TaxNumber = target.TaxNumber;
 }
Example #2
0
 public static DtoGen.Sample_01.Model.User TransformToSource(this DtoGen.Sample_01.DTO.UserData target)
 {
     DtoGen.Core.PropertyConverter.EnsureInitialized();
     DtoGen.Sample_01.Model.User source = new DtoGen.Sample_01.Model.User();
     source.Id        = target.Id;
     source.Name      = target.Name;
     source.Email     = target.Email;
     source.Street    = target.Street;
     source.City      = target.City;
     source.ZIP       = target.ZIP;
     source.State     = target.State;
     source.Country   = target.Country;
     source.TaxNumber = target.TaxNumber;
     return(source);
 }