Skip to content

Commit 7926eae

Browse files
bug: Decimal type forces EF migrator to create migrations again and again (#446)
1 parent 11a5531 commit 7926eae

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/EFCore.Ydb/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
- Fixed bug: Decimal type forces EF migrator to create migrations again and again ([#434](https://github.com/ydb-platform/ydb-dotnet-sdk/issues/434)).
2+
13
## v0.0.1
24

35
- Supported migration tools: initial implementation of EF Core migration tool support.

src/EFCore.Ydb/src/Storage/Internal/Mapping/YdbDecimalTypeMapping.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ protected override RelationalTypeMapping Clone(RelationalTypeMappingParameters p
2727

2828
protected override string ProcessStoreType(
2929
RelationalTypeMappingParameters parameters, string storeType, string storeTypeNameBase
30-
) => $"{storeType}({parameters.Precision ?? DefaultPrecision}, {parameters.Scale ?? DefaultScale})";
30+
) => $"Decimal({parameters.Precision ?? DefaultPrecision}, {parameters.Scale ?? DefaultScale})";
3131
}

0 commit comments

Comments
 (0)