Add unit test

This commit is contained in:
sunkaixuan 2022-05-15 11:43:44 +08:00
parent b8439a5bd3
commit bfd5a40599
2 changed files with 11 additions and 0 deletions

View File

@ -100,6 +100,12 @@ namespace OrmTest
x2 = o2,
x3 = o3
}).ToList();
var list16=Db.Queryable<Order>().Select(x => new BoolTest1
{
// c=SqlFunc.Subqueryable<Order>().Where(z=>z.Id==x.Id).Count(),
a = !string.IsNullOrEmpty(x.Name)
}).ToList();
}
public static class IEnumerbleContains

View File

@ -34,6 +34,11 @@ namespace OrmTest
ID = a.Id,
= !string.IsNullOrEmpty(a.Name) ? a.Name : a.Name
}).ToList();
db.Queryable<Order>().Select(x => new
{
// c=SqlFunc.Subqueryable<Order>().Where(z=>z.Id==x.Id).Count(),
x1 = !string.IsNullOrEmpty(x.Name)
}).ToList();
}
public class Unitadfaint21