Insertable.ExecuteCommandIdentityIntoEntity

This commit is contained in:
sunkaixuan
2022-09-13 15:26:23 +08:00
parent be20222912
commit 41aa2bd3f1

View File

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