mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 01:58:13 +08:00
-
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user