Browse Source

Synchronization code

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

7
Src/Asp.Net/SqlSugar/Abstract/FastestProvider/Private.cs

@ -71,8 +71,15 @@ namespace SqlSugar
{
uInt64TypeName.Add(item.ColumnName);
}
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;
var isMySql = this.context.CurrentConnectionConfig.DbType.IsIn(DbType.MySql, DbType.MySqlConnector);

Loading…
Cancel
Save