Skip to content

Commit

Permalink
Also handle FKs.
Browse files Browse the repository at this point in the history
  • Loading branch information
cincuranet committed Apr 19, 2022
1 parent edfbf78 commit a3b31af
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public static FbValueGenerationStrategy GetValueGenerationStrategy(this IPropert
}

if (property.ValueGenerated != ValueGenerated.OnAdd
|| property.IsForeignKey()
|| property.TryGetDefaultValue(out _)
|| property.GetDefaultValueSql() != null
|| property.GetComputedColumnSql() != null)
Expand Down Expand Up @@ -63,6 +64,7 @@ public static FbValueGenerationStrategy GetValueGenerationStrategy(this IMutable
}

if (property.ValueGenerated != ValueGenerated.OnAdd
|| property.IsForeignKey()
|| property.TryGetDefaultValue(out _)
|| property.GetDefaultValueSql() != null
|| property.GetComputedColumnSql() != null)
Expand Down Expand Up @@ -93,6 +95,7 @@ public static FbValueGenerationStrategy GetValueGenerationStrategy(this IConvent
}

if (property.ValueGenerated != ValueGenerated.OnAdd
|| property.IsForeignKey()
|| property.TryGetDefaultValue(out _)
|| property.GetDefaultValueSql() != null
|| property.GetComputedColumnSql() != null)
Expand Down

0 comments on commit a3b31af

Please sign in to comment.