예제 #1
0
 public static void PopulateTarget(this DtoGen.Sample_02.Model.Book source, DtoGen.Sample_02.DTO.BookData target)
 {
     DtoGen.Core.PropertyConverter.EnsureInitialized();
     target.Id           = source.Id;
     target.ISBN         = source.ISBN;
     target.Name         = source.Name;
     target.Description  = source.Description;
     target.ReleasedDate = source.ReleasedDate;
     target.Revision     = source.Revision;
 }
예제 #2
0
 public static DtoGen.Sample_02.DTO.BookData TransformToTarget(this DtoGen.Sample_02.Model.Book source)
 {
     DtoGen.Core.PropertyConverter.EnsureInitialized();
     DtoGen.Sample_02.DTO.BookData target = new DtoGen.Sample_02.DTO.BookData();
     target.Id           = source.Id;
     target.ISBN         = source.ISBN;
     target.Name         = source.Name;
     target.Description  = source.Description;
     target.ReleasedDate = source.ReleasedDate;
     target.Revision     = source.Revision;
     return(target);
 }