Skip to content

Commit a3b31af

Browse files
committed
Also handle FKs.
1 parent edfbf78 commit a3b31af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/FirebirdSql.EntityFrameworkCore.Firebird/Extensions/FbPropertyExtensions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public static FbValueGenerationStrategy GetValueGenerationStrategy(this IPropert
3333
}
3434

3535
if (property.ValueGenerated != ValueGenerated.OnAdd
36+
|| property.IsForeignKey()
3637
|| property.TryGetDefaultValue(out _)
3738
|| property.GetDefaultValueSql() != null
3839
|| property.GetComputedColumnSql() != null)
@@ -63,6 +64,7 @@ public static FbValueGenerationStrategy GetValueGenerationStrategy(this IMutable
6364
}
6465

6566
if (property.ValueGenerated != ValueGenerated.OnAdd
67+
|| property.IsForeignKey()
6668
|| property.TryGetDefaultValue(out _)
6769
|| property.GetDefaultValueSql() != null
6870
|| property.GetComputedColumnSql() != null)
@@ -93,6 +95,7 @@ public static FbValueGenerationStrategy GetValueGenerationStrategy(this IConvent
9395
}
9496

9597
if (property.ValueGenerated != ValueGenerated.OnAdd
98+
|| property.IsForeignKey()
9699
|| property.TryGetDefaultValue(out _)
97100
|| property.GetDefaultValueSql() != null
98101
|| property.GetComputedColumnSql() != null)

0 commit comments

Comments
 (0)