mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Select BUG
This commit is contained in:
parent
3790271db5
commit
73b6e202fe
@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user