Skip to content

Commit a6f006d

Browse files
authored
Merge pull request #2179 from 466974367/master
增加TDengine 对Decimal类型支持
2 parents 0e69d48 + f980476 commit a6f006d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Providers/FreeSql.Provider.TDengine/TDengineCodeFirst.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ public TDengineCodeFirst(IFreeSql orm, CommonUtils commonUtils, CommonExpression
6161
{ typeof(float?).FullName, CsToDb.New(DbType.Single, "FLOAT", "FLOAT", null, true, null) },
6262
{ typeof(double).FullName, CsToDb.New(DbType.Double, "DOUBLE", "DOUBLE", null, false, 0) },
6363
{ typeof(double?).FullName, CsToDb.New(DbType.Double, "DOUBLE", "DOUBLE", null, true, null) },
64+
{ typeof(decimal).FullName, CsToDb.New(DbType.Single, "DECIMAL", "DECIMAL(36,18)", null, false, 0) },
65+
{ typeof(decimal?).FullName, CsToDb.New(DbType.Single, "DECIMAL", "DECIMAL(36,18)", null, true, null) },
6466
{ typeof(string).FullName, CsToDb.New(DbType.String, "NCHAR", "NCHAR(255)", null, false, 0) },
6567
};
6668

@@ -323,4 +325,4 @@ private object HandleTagValue(object tagValue)
323325
}
324326
}
325327
}
326-
}
328+
}

0 commit comments

Comments
 (0)