- 修改 Query 查询的实体设置了 IsIgnore 时,可能出现 ET 读取位置偏移 bug;

This commit is contained in:
28810
2019-05-13 17:59:27 +08:00
parent 79e21295c3
commit 5fe35f67e9
5 changed files with 87 additions and 63 deletions

View File

@ -32,6 +32,13 @@ namespace FreeSql.Tests.Sqlite {
[Fact]
public void Query() {
var t0 = g.sqlite.Ado.Query<testallDto>("select * from \"song\"");
var t1 = g.sqlite.Ado.Query<testallDto>("select id, url, create_time from \"song\"");
var t2 = g.sqlite.Ado.Query<testallDto>("select id, url, create_time test_time from \"song\"");
var t3 = g.sqlite.Ado.Query<xxx>("select * from \"song\"");
var t4 = g.sqlite.Ado.Query<(int, string, string)>("select * from \"song\"");
@ -49,5 +56,14 @@ namespace FreeSql.Tests.Sqlite {
public string Path { get; set; }
public string Title2 { get; set; }
}
class testallDto {
public int Id { get; set; }
public string Title { get; set; }
public string Url { get; set; }
public DateTime Test_time { get; set; }
public DateTime Create_time { get; set; }
public bool Is_deleted { get; set; }
}
}
}