mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-05 03:17:41 +08:00
Update bulkMerge
This commit is contained in:
@@ -280,7 +280,7 @@ namespace SqlSugar
|
||||
foreach (DataColumn item in dataTable.Columns)
|
||||
{
|
||||
var isPrimaryKey = whereColumns.Any(it => it.EqualCase(item.ColumnName));
|
||||
builder.CreateProperty(item.ColumnName,typeof(Nullable<>).MakeGenericType(item.DataType), new SugarColumn()
|
||||
builder.CreateProperty(item.ColumnName,typeof(Nullable<>).MakeGenericType(UtilMethods.GetUnderType(item.DataType)), new SugarColumn()
|
||||
{
|
||||
IsPrimaryKey = isPrimaryKey,
|
||||
IsIdentity=isIdentity&& isPrimaryKey,
|
||||
|
||||
Reference in New Issue
Block a user