Exemplo n.º 1
0
 public static DtoGen.Sample_02.DTO.GenreData TransformToTarget(this DtoGen.Sample_02.Model.Genre source)
 {
     DtoGen.Core.PropertyConverter.EnsureInitialized();
     DtoGen.Sample_02.DTO.GenreData target = new DtoGen.Sample_02.DTO.GenreData();
     target.Id   = source.Id;
     target.Name = source.Name;
     return(target);
 }
Exemplo n.º 2
0
 public static void PopulateTarget(this DtoGen.Sample_02.Model.Genre source, DtoGen.Sample_02.DTO.GenreData target)
 {
     DtoGen.Core.PropertyConverter.EnsureInitialized();
     target.Id   = source.Id;
     target.Name = source.Name;
 }