Updateable bug

This commit is contained in:
sunkaixuan 2022-09-14 10:50:30 +08:00
parent 519b7f43cf
commit 04e4f5f5b8

View File

@ -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