This commit is contained in:
sunkaixuan
2017-03-05 16:18:49 +08:00
parent 7a03e52621
commit 1aa10dc302
21 changed files with 167 additions and 93 deletions

View File

@@ -29,7 +29,12 @@ namespace OrmTest.UnitTest
{
using (var db = GetInstance())
{
var list = db.Queryable<Student>().Where(st => st.Id > 0).ToList();
var list = db.Queryable<Student>()
.Where(st => st.Id > 0)
.Select(it => new ViewModelStudent { Name = it.Name }).ToList();
var list2 = db.Queryable<Student>()
.Where(st => st.Id > 0)
.Select("*").ToList();
}
}