mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
This commit is contained in:
@@ -44,6 +44,7 @@ namespace SqlSugar
|
||||
if (isPk && item.PropertyType == UtilConstants.GuidType&&item.Value.ObjToString()==Guid.Empty.ToString()) {
|
||||
item.Value = Guid.NewGuid();
|
||||
}
|
||||
InsertObjs.First().GetType().GetProperties().First(it => it.Name == item.PropertyName).SetValue(InsertObjs.First(),item.Value,null);
|
||||
}
|
||||
}
|
||||
InsertBuilder.IsReturnIdentity = false;
|
||||
|
Binary file not shown.
Reference in New Issue
Block a user