mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 修复 InsertValueSql 在仓储插入后不返回最新值;
This commit is contained in:
@ -596,8 +596,9 @@ namespace FreeSql.Tests
|
||||
[Fact]
|
||||
public void BeginEditIdentity()
|
||||
{
|
||||
g.sqlite.Delete<BeginEdit02>().Where("1=1").ExecuteAffrows();
|
||||
var repo = g.sqlite.GetRepository<BeginEdit02>();
|
||||
var fsql = g.sqlserver;
|
||||
fsql.Delete<BeginEdit02>().Where("1=1").ExecuteAffrows();
|
||||
var repo = fsql.GetRepository<BeginEdit02>();
|
||||
var cts = new[] {
|
||||
new BeginEdit02 { Name = "<22><><EFBFBD><EFBFBD>1" },
|
||||
new BeginEdit02 { Name = "<22><><EFBFBD><EFBFBD>1_1" },
|
||||
@ -617,8 +618,8 @@ namespace FreeSql.Tests
|
||||
|
||||
Assert.Equal(3, repo.EndEdit());
|
||||
|
||||
g.sqlite.Delete<BeginEdit02>().Where("1=1").ExecuteAffrows();
|
||||
repo = g.sqlite.GetRepository<BeginEdit02>();
|
||||
fsql.Delete<BeginEdit02>().Where("1=1").ExecuteAffrows();
|
||||
repo = fsql.GetRepository<BeginEdit02>();
|
||||
cts = repo.Select.ToList();
|
||||
repo.BeginEdit(cts);
|
||||
|
||||
|
Reference in New Issue
Block a user