Skip to content

Commit

Permalink
Merge pull request #362 from iwdeity/master
Browse files Browse the repository at this point in the history
Update UserInfoSeedData.cs
  • Loading branch information
anjoy8 authored May 7, 2024
2 parents 8f36fdf + a181eb5 commit e2f5b54
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Blog.Core.Common/Seed/SeedData/UserInfoSeedData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ public async Task CustomizeSeedData(ISqlSugarClient db)
var sysUserInfos = data.Where(s => !names.Contains(s.LoginName)).ToList();
if (sysUserInfos.Any())
{
await db.Insertable<SysUserInfo>(sysUserInfos).ExecuteReturnIdentityAsync();
//await db.Insertable<SysUserInfo>(sysUserInfos).ExecuteReturnIdentityAsync();//postgresql这句会报错
await db.Insertable<SysUserInfo>(sysUserInfos).ExecuteCommandAsync();
}

await Task.CompletedTask;
}
}
}

0 comments on commit e2f5b54

Please sign in to comment.