Json.Test.Web/Models/Generated/GasRetrofitDto.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.GasRetrofit obj, IMappingContext context, IncludeTree tree = null)
        {
            if (obj == null) return;
            var includes = context.Includes;
            this.NumberOfDials = obj.NumberOfDials;
            this.FieldWorkId = obj.FieldWorkId;
            this.FieldCompletionDateTime = obj.FieldCompletionDateTime;
            var propValInspections = obj.Inspections;
            if (propValInspections != null)
            {
                this.Inspections = propValInspections
                    .Select(f => f.MapToDto<Json.Test.Data.Models.Inspection, InspectionDtoGen>(context, tree?[nameof(this.Inspections)])).ToList();
            }
        }
public override void MapFrom ( Json . Test . Data . Models . GasRetrofit obj , IMappingContext context , IncludeTree tree = null ) { if ( obj == null ) return ; var includes = context . Includes ; this . NumberOfDials = obj . NumberOfDials ; this . FieldWorkId = obj . FieldWorkId ; this . FieldCompletionDateTime = obj . FieldCompletionDateTime ; var propValInspections = obj . Inspections ; if ( propValInspections != null ) { this . Inspections = propValInspections . Select ( f => f . MapToDto < Json . Test . Data . Models . Inspection , InspectionDtoGen > ( context , tree ? [ nameof ( this . Inspections ) ] ) ) . ToList ( ) ; } }
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.GasRetrofit
context
IMappingContext
tree
IncludeTree