Browse Source

Optimize clickhouse

pull/40/head
sunkaixuan 1 year ago
parent
commit
74a4771e16
  1. 9
      Src/Asp.NetCore2/SqlSugar/Abstract/FastestProvider/Private.cs

9
Src/Asp.NetCore2/SqlSugar/Abstract/FastestProvider/Private.cs

@ -71,7 +71,14 @@ namespace SqlSugar
{
uInt64TypeName.Add(item.ColumnName);
}
dt.Columns.Add(item.ColumnName, item.DataType);
if (item.DataType.Name == "ClickHouseDecimal")
{
dt.Columns.Add(item.ColumnName, typeof(decimal));
}
else
{
dt.Columns.Add(item.ColumnName, item.DataType);
}
}
dt.TableName = GetTableName();
var columns = entityInfo.Columns;

Loading…
Cancel
Save