src/Inflatable/ClassMapper/MappingSource.cs
/// <summary>
/// Sets up the parent IDs.
/// </summary>
Sets up the parent IDs.
Sets up the parent IDs .
private void SetupAutoIDs()
        {
            if (!Optimize)
                return;
            foreach (var CurrentTree in TypeGraphs.Values)
            {
                if (CurrentTree is null)
                    continue;
                var CurrentMapping = Mappings[CurrentTree.Root.Data];
                if (CurrentMapping.IDProperties.Count > 0)
                    continue;
                if (IsDebug)
                    Logger.Debug("Adding identity key to {Name:l} in {Source:l} as one is not defined.", CurrentMapping, Source.Name);
                CurrentMapping.AddAutoKey();
            }
        }
private void SetupAutoIDs ( ) { if ( ! Optimize ) return ; foreach ( var CurrentTree in TypeGraphs . Values ) { if ( CurrentTree is null ) continue ; var CurrentMapping = Mappings [ CurrentTree . Root . Data ] ; if ( CurrentMapping . IDProperties . Count > 0 ) continue ; if ( IsDebug ) Logger . Debug ( " " , CurrentMapping , Source . Name ) ; CurrentMapping . AddAutoKey ( ) ; } }
Sets up the parent IDs.
Sets up the parent IDs .