This commit is contained in:
sunkaixuan
2017-03-05 17:15:36 +08:00
parent 1aa10dc302
commit d0c1946750
3 changed files with 6 additions and 6 deletions

View File

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