mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Select BUG
This commit is contained in:
@@ -79,6 +79,11 @@ namespace OrmTest.BugTest
|
|||||||
b.Id == vb.BrandId)
|
b.Id == vb.BrandId)
|
||||||
. Where((b) => b.BrandType == 1).Select((b) => b).ToList();
|
. Where((b) => b.BrandType == 1).Select((b) => b).ToList();
|
||||||
|
|
||||||
|
|
||||||
|
var query = GetInstance().Queryable<Student>().Select(o => o);
|
||||||
|
|
||||||
|
var result = query.ToList();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -395,8 +395,15 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
var expression = this.SelectValue as Expression;
|
var expression = this.SelectValue as Expression;
|
||||||
var result = GetExpressionValue(expression, this.SelectType).GetResultString();
|
var result = GetExpressionValue(expression, this.SelectType).GetResultString();
|
||||||
this.SelectCacheKey = result;
|
if (result.Contains(".*") && this.IsSingle())
|
||||||
return result;
|
{
|
||||||
|
return "*";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.SelectCacheKey = result;
|
||||||
|
return result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
public virtual string GetSelectValueByString()
|
public virtual string GetSelectValueByString()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user