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,10 +280,11 @@ namespace SqlSugar
|
|||||||
foreach (DataColumn item in dataTable.Columns)
|
foreach (DataColumn item in dataTable.Columns)
|
||||||
{
|
{
|
||||||
var isPrimaryKey = whereColumns.Any(it => it.EqualCase(item.ColumnName));
|
var isPrimaryKey = whereColumns.Any(it => it.EqualCase(item.ColumnName));
|
||||||
builder.CreateProperty(item.ColumnName, item.DataType, new SugarColumn()
|
builder.CreateProperty(item.ColumnName,typeof(Nullable<>).MakeGenericType(item.DataType), new SugarColumn()
|
||||||
{
|
{
|
||||||
IsPrimaryKey = isPrimaryKey,
|
IsPrimaryKey = isPrimaryKey,
|
||||||
IsIdentity=isIdentity&& isPrimaryKey
|
IsIdentity=isIdentity&& isPrimaryKey,
|
||||||
|
IsNullable= true,
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user