mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
## v0.5.3
- 增加 ISelect.ToList(true) 自动贪婪加载 LeftJoin/InnerJoin/RightJoin 导航数据;#35 - 增加 IAdo.Query<T1, T2 ...> 多结果集查询; - 增加 IAdo.ExecuteDataSet 多结果集查询; - 优化 未设置实体属性 set 的将被自动过滤 IsIgnore;
This commit is contained in:
@ -219,6 +219,9 @@ namespace FreeSql.Tests.PostgreSQL {
|
||||
g.pgsql.Insert<TestGuidIdToList>().AppendData(new TestGuidIdToList()).ExecuteAffrows();
|
||||
var testGuidId5 = g.pgsql.Select<TestGuidIdToList>().ToList();
|
||||
var testGuidId6 = g.pgsql.Select<TestGuidIdToList>().ToList(a => a.id);
|
||||
|
||||
var t11 = select.Where(a => a.Type.Name.Length > 0).ToList(true);
|
||||
var t21 = select.Where(a => a.Type.Parent.Name.Length > 0).ToList(true);
|
||||
}
|
||||
class TestGuidIdToList {
|
||||
public Guid id { get; set; }
|
||||
|
@ -42,6 +42,12 @@ namespace FreeSql.Tests.PostgreSQL {
|
||||
var t5 = g.pgsql.Ado.Query<dynamic>("select * from xxx");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void QueryMultipline() {
|
||||
g.pgsql.CodeFirst.SyncStructure<xxx>();
|
||||
var t3 = g.pgsql.Ado.Query<xxx, (int, string, string), dynamic>("select * from xxx; select * from xxx; select * from xxx");
|
||||
}
|
||||
|
||||
class xxx {
|
||||
public int Id { get; set; }
|
||||
public string Path { get; set; }
|
||||
|
Reference in New Issue
Block a user