Update .net core project

This commit is contained in:
sunkaixuan
2022-09-13 15:29:06 +08:00
parent 41aa2bd3f1
commit 112edde52b

View File

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