Skip to content

Commit 7690920

Browse files
committed
fix
1 parent f8b1a3a commit 7690920

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/EFCore.Ydb/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- Fixed Decimal precision/scale mapping in EF provider and added functional tests.
1+
- Fixed Decimal precision/scale mapping in EF provider.
22
- Supported Guid (Uuid YDB type).
33
- PrivateAssets="none" is set to flow the EF Core analyzer to users referencing this package [issue](https://github.com/aspnet/EntityFrameworkCore/pull/11350).
44

src/EFCore.Ydb/src/Storage/Internal/YdbTypeMappingSource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ RelationalTypeMappingSourceDependencies relationalDependencies
114114
{
115115
if (mappingInfo.ClrType == typeof(decimal)
116116
|| string.Equals(mappingInfo.StoreTypeNameBase, "Decimal", StringComparison.OrdinalIgnoreCase)
117-
|| string.Equals(mappingInfo.StoreTypeName, "Decimal", StringComparison.OrdinalIgnoreCase))
117+
|| (mappingInfo.StoreTypeName?.StartsWith("Decimal", StringComparison.OrdinalIgnoreCase) ?? false))
118118
{
119119
return Decimal.Clone(mappingInfo);
120120
}

0 commit comments

Comments
 (0)