Json.Test.Web/Models/Generated/LiveAuditDto.g.cs
/// <summary>
/// Map from the domain object to the properties of the current DTO instance.
/// </summary>
Map from the domain object to the properties of the current DTO instance.
Map from the domain object to the properties of the current DTO instance .
public override void MapFrom(Json.Test.Data.Models.LiveAudit obj, IMappingContext context, IncludeTree tree = null)
        {
            if (obj == null) return;
            var includes = context.Includes;
            this.LiveAuditQuestion1 = obj.LiveAuditQuestion1;
            this.LiveAuditQuestion2 = obj.LiveAuditQuestion2;
            this.InspectionId = obj.InspectionId;
            this.ParentFieldWork = obj.ParentFieldWork.MapToDto<Json.Test.Data.Models.FieldWork, FieldWorkDtoGen>(context, tree?[nameof(this.ParentFieldWork)]);
            this.MetaData = obj.MetaData.MapToDto<Json.Test.Data.Models.AuditMetaData, AuditMetaDataDtoGen>(context, tree?[nameof(this.MetaData)]);
        }
public override void MapFrom ( Json . Test . Data . Models . LiveAudit obj , IMappingContext context , IncludeTree tree = null ) { if ( obj == null ) return ; var includes = context . Includes ; this . LiveAuditQuestion1 = obj . LiveAuditQuestion1 ; this . LiveAuditQuestion2 = obj . LiveAuditQuestion2 ; this . InspectionId = obj . InspectionId ; this . ParentFieldWork = obj . ParentFieldWork . MapToDto < Json . Test . Data . Models . FieldWork , FieldWorkDtoGen > ( context , tree ? [ nameof ( this . ParentFieldWork ) ] ) ; this . MetaData = obj . MetaData . MapToDto < Json . Test . Data . Models . AuditMetaData , AuditMetaDataDtoGen > ( context , tree ? [ nameof ( this . MetaData ) ] ) ; }
Map from the domain object to the properties of the current DTO instance.
Map from the domain object to the properties of the current DTO instance .
// Fill the properties of the object.
obj
Json.Test.Data.Models.LiveAudit
<not_specific>
context
IMappingContext
<not_specific>
tree
IncludeTree
<not_specific>