Skip to content

Commit edfbf78

Browse files
committed
Fix condition for default value and generation strategy (#1042).
1 parent bfd81b3 commit edfbf78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

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

3535
if (property.ValueGenerated != ValueGenerated.OnAdd
36-
|| property.GetDefaultValue() != null
36+
|| property.TryGetDefaultValue(out _)
3737
|| property.GetDefaultValueSql() != null
3838
|| property.GetComputedColumnSql() != null)
3939
{
@@ -63,7 +63,7 @@ public static FbValueGenerationStrategy GetValueGenerationStrategy(this IMutable
6363
}
6464

6565
if (property.ValueGenerated != ValueGenerated.OnAdd
66-
|| property.GetDefaultValue() != null
66+
|| property.TryGetDefaultValue(out _)
6767
|| property.GetDefaultValueSql() != null
6868
|| property.GetComputedColumnSql() != null)
6969
{
@@ -93,7 +93,7 @@ public static FbValueGenerationStrategy GetValueGenerationStrategy(this IConvent
9393
}
9494

9595
if (property.ValueGenerated != ValueGenerated.OnAdd
96-
|| property.GetDefaultValue() != null
96+
|| property.TryGetDefaultValue(out _)
9797
|| property.GetDefaultValueSql() != null
9898
|| property.GetComputedColumnSql() != null)
9999
{

0 commit comments

Comments
 (0)