mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-06 00:10:55 +08:00
- 修复 MySql8.0.30 无法使用 ExecuteInserted 的问题;#2001
This commit is contained in:
@@ -621,7 +621,16 @@ namespace base_entity
|
||||
BaseEntity.Initialization(fsql, () => _asyncUow.Value);
|
||||
#endregion
|
||||
|
||||
fsql.Delete<User1>().Where("1=1").ExecuteAffrows();
|
||||
fsql.Insert(new List<User1>
|
||||
{
|
||||
new User1 { Nickname = "nickname11", Username = "username11", Description = "desc11" },
|
||||
new User1 { Nickname = "n2", Username = "u2", Description = "d2" },
|
||||
new User1 { Nickname = "n3", Username = "u3", Description = "d3" },
|
||||
}).ExecuteAffrows();
|
||||
|
||||
fsql.Insert(new User1()).ExecuteInserted();
|
||||
fsql.Update<User1>().SetSource(new User1()).ExecuteUpdated();
|
||||
|
||||
fsql.InsertOrUpdate<AppInfoEntity>().SetSource(new AppInfoEntity { AppID = "03DN8CW8", AppName = "app_01" }).ExecuteAffrows();
|
||||
var repo2211 = fsql.GetRepository<AppInfoEntity>();
|
||||
|
||||
Reference in New Issue
Block a user