- 增加 ISelect.InsertInto 将查询转换为 INSERT INTO t1 SELECT ... FROM t2 执行插入;#469

This commit is contained in:
28810
2020-10-16 22:01:00 +08:00
parent fc47407fba
commit acf26ecbef
46 changed files with 638 additions and 191 deletions

View File

@ -89,6 +89,11 @@ namespace FreeSql.Tests.PostgreSQL
Assert.Equal(1, insert.AppendData(items.First()).ExecuteAffrows());
Assert.Equal(10, insert.AppendData(items).ExecuteAffrows());
Assert.Equal(10, g.pgsql.Select<Topic>().Limit(10).InsertInto(null, a => new Topic
{
Title = a.Title
}));
}
[Fact]
public void ExecuteIdentity()