Json.Test.Web/Models/Generated/InspectionDto.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.Inspection obj, IMappingContext context, IncludeTree tree = null)
        {
            if (obj == null) return;
            var includes = context.Includes;
            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 . Inspection obj , IMappingContext context , IncludeTree tree = null ) { if ( obj == null ) return ; var includes = context . Includes ; 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.Inspection
context
IMappingContext
tree
IncludeTree