mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-16 16:50:41 +08:00
-
This commit is contained in:
parent
1aa10dc302
commit
d0c1946750
@ -16,7 +16,7 @@ namespace OrmTest
|
||||
static void Main(string[] args)
|
||||
{
|
||||
//Unit Test
|
||||
int eachCount = 1000;
|
||||
int eachCount = 1;
|
||||
//new Field(eachCount).Init();
|
||||
//new Where(eachCount).Init();
|
||||
//new Method(eachCount).Init();
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -98,11 +98,11 @@ namespace SqlSugar
|
||||
pre = Builder.GetTranslationColumnName(this.JoinQueryInfos.Single(it => it.PreShortName.IsValuable()).PreShortName) + ".";
|
||||
}
|
||||
reval = string.Join(",", this.Context.Database.DbMaintenance.GetColumnInfosByTableName(this.EntityName).Select(it => pre + Builder.GetTranslationColumnName(it.ColumnName)));
|
||||
this.SelectCacheKey = "*";
|
||||
}
|
||||
else
|
||||
{
|
||||
reval = this.SelectValue.ObjToString();
|
||||
this.SelectCacheKey = reval;
|
||||
}
|
||||
|
||||
return reval;
|
||||
|
Loading…
Reference in New Issue
Block a user