Browse Source

Synchronization code

pull/40/head
sunkaixuan 1 year ago
parent
commit
43562eda0d
  1. 9
      Src/Asp.Net/SqlSugar/Abstract/FastestProvider/Private.cs

9
Src/Asp.Net/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