mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-16 21:19:34 +08:00
Updateable bug
This commit is contained in:
parent
519b7f43cf
commit
04e4f5f5b8
@ -312,7 +312,10 @@ namespace SqlSugar
|
||||
if (snowColumn != null)
|
||||
{
|
||||
var id =await this.ExecuteReturnSnowflakeIdAsync();
|
||||
snowColumn.PropertyInfo.SetValue(result, id);
|
||||
if (Convert.ToInt64(snowColumn.PropertyInfo.GetValue(result)) == 0)
|
||||
{
|
||||
snowColumn.PropertyInfo.SetValue(result, id);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user