mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 04:23:47 +08:00
Insertable.ExecuteCommandIdentityIntoEntity
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user