Skip to content

Commit 0071a38

Browse files
committed
fixed sbyte and utf8 in typeMapping
1 parent 4448813 commit 0071a38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ public class YdbTypeMappingSource : RelationalTypeMappingSource
1616

1717
private readonly YdbBoolTypeMapping _bool = YdbBoolTypeMapping.Default;
1818

19-
private readonly SByteTypeMapping _int8 = new("INT8", DbType.Byte);
19+
private readonly SByteTypeMapping _int8 = new("INT8", DbType.SByte);
2020
private readonly ShortTypeMapping _int16 = new("INT16", DbType.Int16);
2121
private readonly IntTypeMapping _int32 = new("INT32", DbType.Int32);
2222
private readonly LongTypeMapping _int64 = new("INT64", DbType.Int64);
2323

24-
private readonly ByteTypeMapping _uint8 = new("UINT8", DbType.SByte);
24+
private readonly ByteTypeMapping _uint8 = new("UINT8", DbType.Byte);
2525
private readonly UShortTypeMapping _uint16 = new("UINT16", DbType.UInt16);
2626
private readonly UIntTypeMapping _uint32 = new("UINT32", DbType.UInt32);
2727
private readonly ULongTypeMapping _uint64 = new("UINT64", DbType.UInt64);
@@ -55,7 +55,7 @@ RelationalTypeMappingSourceDependencies relationalDependencies
5555
{ "float", [_float] },
5656
{ "double", [_double] },
5757

58-
{ "string", [_string] }
58+
{ "text", [_string] }
5959
};
6060
var clrTypeMappings = new Dictionary<Type, RelationalTypeMapping>
6161
{

0 commit comments

Comments
 (0)