public static void PopulateSource(this DtoGen.Sample_02.DTO.BookData target, DtoGen.Sample_02.Model.Book source) { DtoGen.Core.PropertyConverter.EnsureInitialized(); source.Id = target.Id; source.ISBN = target.ISBN; source.Name = target.Name; source.Description = target.Description; source.ReleasedDate = target.ReleasedDate; source.Revision = target.Revision; }
public static DtoGen.Sample_02.Model.Book TransformToSource(this DtoGen.Sample_02.DTO.BookData target) { DtoGen.Core.PropertyConverter.EnsureInitialized(); DtoGen.Sample_02.Model.Book source = new DtoGen.Sample_02.Model.Book(); source.Id = target.Id; source.ISBN = target.ISBN; source.Name = target.Name; source.Description = target.Description; source.ReleasedDate = target.ReleasedDate; source.Revision = target.Revision; return(source); }