mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-17 21:49:33 +08:00
Updateable bug
This commit is contained in:
parent
519b7f43cf
commit
04e4f5f5b8
@ -312,7 +312,10 @@ namespace SqlSugar
|
|||||||
if (snowColumn != null)
|
if (snowColumn != null)
|
||||||
{
|
{
|
||||||
var id =await this.ExecuteReturnSnowflakeIdAsync();
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user