Browse Source

Update .net core project

SqlSugar5
sunkaixuan 2 years ago
parent
commit
528ea115a8
  1. 3
      Src/Asp.NetCore2/SqlSugar/Abstract/InsertableProvider/InsertableProvider.cs

3
Src/Asp.NetCore2/SqlSugar/Abstract/InsertableProvider/InsertableProvider.cs

@ -312,7 +312,10 @@ namespace SqlSugar
if (snowColumn != null)
{
var id =await this.ExecuteReturnSnowflakeIdAsync();
if (Convert.ToInt64(snowColumn.PropertyInfo.GetValue(result)) == 0)
{
snowColumn.PropertyInfo.SetValue(result, id);
}
return true;
}
else

Loading…
Cancel
Save