Select BUG

This commit is contained in:
610262374@qq.com 2019-01-04 18:36:36 +08:00
parent 3790271db5
commit 73b6e202fe
2 changed files with 14 additions and 2 deletions

View File

@ -79,6 +79,11 @@ namespace OrmTest.BugTest
b.Id == vb.BrandId)
. Where((b) => b.BrandType == 1).Select((b) => b).ToList();
var query = GetInstance().Queryable<Student>().Select(o => o);
var result = query.ToList();
}

View File

@ -395,8 +395,15 @@ namespace SqlSugar
{
var expression = this.SelectValue as Expression;
var result = GetExpressionValue(expression, this.SelectType).GetResultString();
this.SelectCacheKey = result;
return result;
if (result.Contains(".*") && this.IsSingle())
{
return "*";
}
else
{
this.SelectCacheKey = result;
return result;
}
}
public virtual string GetSelectValueByString()
{