@@ -2672,7 +2672,7 @@ SELECT SERVERPROPERTY('Edition') AS Edition,
26722672 }
26732673
26742674 var fkd = new PropertyAndComments();
2675- fkd.AdditionalDataAnnotations = foreignKeyAnnotationsProcessing != null ? foreignKeyAnnotationsProcessing (fkTable, pkTable, pkPropName) : null ;
2675+ fkd.AdditionalDataAnnotations = foreignKeyAnnotationsProcessing(fkTable, pkTable, pkPropName);
26762676 fkd.Definition = string.Format("{0}public {1}{2} {3} {4}{5}", dataAnnotation, Table.GetLazyLoadingMarker(), pkTableHumanCaseWithSuffix, pkPropName, "{ get; set; }", includeComments != CommentsStyle.None ? " // " + foreignKey.ConstraintName : string.Empty);
26772677 fkd.Comments = string.Format("Parent {0} pointed by [{1}].({2}) ({3})", pkTableHumanCase, fkTable.Name, string.Join(", ", fkCols.Select(x => "[" + x.col.NameHumanCase + "]").Distinct().ToArray()), foreignKey.ConstraintName);
26782678 fkCol.col.EntityFk.Add(fkd);
@@ -3342,7 +3342,7 @@ SELECT SERVERPROPERTY('Edition') AS Edition,
33423342 ReverseNavigationProperty.Add(
33433343 new PropertyAndComments()
33443344 {
3345- AdditionalDataAnnotations = foreignKeyAnnotationsProcessing != null ? foreignKeyAnnotationsProcessing (fkTable, this, propName) : null ,
3345+ AdditionalDataAnnotations = foreignKeyAnnotationsProcessing(fkTable, this, propName),
33463346 Definition = string.Format("public {0}{1} {2} {{ get; set; }}{3}", GetLazyLoadingMarker(), fkTable.NameHumanCaseWithSuffix, propName, includeComments != CommentsStyle.None ? " // " + constraint : string.Empty),
33473347 Comments = string.Format("Parent (One-to-One) {0} pointed by [{1}].{2} ({3})", this.NameHumanCaseWithSuffix, fkTable.Name, fkNames, fks.First().ConstraintName)
33483348 }
@@ -3353,7 +3353,7 @@ SELECT SERVERPROPERTY('Edition') AS Edition,
33533353 ReverseNavigationProperty.Add(
33543354 new PropertyAndComments()
33553355 {
3356- AdditionalDataAnnotations = foreignKeyAnnotationsProcessing != null ? foreignKeyAnnotationsProcessing (fkTable, this, propName) : null ,
3356+ AdditionalDataAnnotations = foreignKeyAnnotationsProcessing(fkTable, this, propName),
33573357 Definition = string.Format("public {0}{1} {2} {{ get; set; }}{3}", GetLazyLoadingMarker(), fkTable.NameHumanCaseWithSuffix, propName, includeComments != CommentsStyle.None ? " // " + constraint : string.Empty),
33583358 Comments = string.Format("Parent {0} pointed by [{1}].{2} ({3})", NameHumanCaseWithSuffix, fkTable.Name, fkNames, fks.First().ConstraintName)
33593359 }
@@ -3367,7 +3367,7 @@ SELECT SERVERPROPERTY('Edition') AS Edition,
33673367 ReverseNavigationProperty.Add(
33683368 new PropertyAndComments()
33693369 {
3370- AdditionalDataAnnotations = foreignKeyAnnotationsProcessing != null ? foreignKeyAnnotationsProcessing (fkTable, this, propName) : null ,
3370+ AdditionalDataAnnotations = foreignKeyAnnotationsProcessing(fkTable, this, propName),
33713371 Definition = string.Format("public {0}System.Collections.Generic.ICollection<{1}> {2} {{ get; set; }}{3}{4}", GetLazyLoadingMarker(), fkTable.NameHumanCaseWithSuffix, propName, initialization1, includeComments != CommentsStyle.None ? " // " + constraint : string.Empty),
33723372 Comments = string.Format("Child {0} where [{1}].{2} point to this entity ({3})", Inflector.MakePlural(fkTable.NameHumanCase), fkTable.Name, fkNames, fks.First().ConstraintName)
33733373 }
@@ -3382,7 +3382,7 @@ SELECT SERVERPROPERTY('Edition') AS Edition,
33823382 ReverseNavigationProperty.Add(
33833383 new PropertyAndComments()
33843384 {
3385- AdditionalDataAnnotations = foreignKeyAnnotationsProcessing != null ? foreignKeyAnnotationsProcessing (fkTable, this, propName) : null ,
3385+ AdditionalDataAnnotations = foreignKeyAnnotationsProcessing(fkTable, this, propName),
33863386 Definition = string.Format("public {0}System.Collections.Generic.ICollection<{1}> {2} {{ get; set; }}{3}{4}", GetLazyLoadingMarker(), fkTable.NameHumanCaseWithSuffix, propName, initialization2, includeComments != CommentsStyle.None ? " // Many to many mapping" : string.Empty),
33873387 Comments = string.Format("Child {0} (Many-to-Many) mapped by table [{1}]", Inflector.MakePlural(fkTable.NameHumanCase), mappingTable == null ? string.Empty : mappingTable.Name)
33883388 }
0 commit comments