This commit is contained in:
sunkaixuan 2019-05-16 15:10:30 +08:00
parent 4dd0c2e729
commit b2109ce6ef
2 changed files with 4 additions and 5 deletions

View File

@ -401,6 +401,10 @@ namespace SqlSugar
{
var expression = this.SelectValue as Expression;
var result = GetExpressionValue(expression, this.SelectType).GetResultString();
if (result == null)
{
return "*";
}
if (result.Contains(".*") && this.IsSingle())
{
return "*";

View File

@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
namespace SqlSugar
@ -35,10 +34,6 @@ namespace SqlSugar
return result;
}
}
private static Expression<Func<List<T>, Result>> FuncToExpression<Result>(Func<List<T>, Result> f)
{
return x => f(x);
}
public List<Result> GetListByPrimaryKeys<Result>(Func<T, double?> action) where Result : class, new()
{
{