Merge pull request #2181 from 466974367/master

增加TDengine 对Decimal类型支持(修复DbType错误)
This commit is contained in:
2881099
2025-12-25 13:46:01 +08:00
committed by GitHub

View File

@@ -61,8 +61,8 @@ namespace FreeSql.TDengine
{ typeof(float?).FullName, CsToDb.New(DbType.Single, "FLOAT", "FLOAT", null, true, null) },
{ typeof(double).FullName, CsToDb.New(DbType.Double, "DOUBLE", "DOUBLE", null, false, 0) },
{ typeof(double?).FullName, CsToDb.New(DbType.Double, "DOUBLE", "DOUBLE", null, true, null) },
{ typeof(decimal).FullName, CsToDb.New(DbType.Single, "DECIMAL", "DECIMAL(36,18)", null, false, 0) },
{ typeof(decimal?).FullName, CsToDb.New(DbType.Single, "DECIMAL", "DECIMAL(36,18)", null, true, null) },
{ typeof(decimal).FullName, CsToDb.New(DbType.Decimal, "DECIMAL", "DECIMAL(36,18)", null, false, 0) },
{ typeof(decimal?).FullName, CsToDb.New(DbType.Decimal, "DECIMAL", "DECIMAL(36,18)", null, true, null) },
{ typeof(string).FullName, CsToDb.New(DbType.String, "NCHAR", "NCHAR(255)", null, false, 0) },
};