- 修复 线程事务嵌套事务的 bug;#502

This commit is contained in:
2881099
2020-10-26 21:08:10 +08:00
parent 1a05d63a96
commit 32353bb335
4 changed files with 189 additions and 10 deletions

View File

@ -187,9 +187,25 @@ namespace FreeSql.Tests
public bool isxx { get; set; }
}
public class tcate01
{
[Column(IsIdentity = true)]
public int? Id { get; set; }
}
public class tshop01
{
public Guid Id { get; set; }
public int cateId { get; set; }
public tcate01 cate { get; set; }
}
[Fact]
public void Test03()
{
var tshop01sql = g.sqlite.Select<tshop01>().Include(a => a.cate).ToSql();
var testisnullsql1 = g.sqlite.Select<t102>().Where(a => SqlExt.IsNull(a.isxx, false).Equals( true)).ToSql();
var testisnullsql2 = g.sqlite.Select<t102>().Where(a => SqlExt.IsNull(a.isxx, false).Equals(false)).ToSql();