mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-06 21:58:02 +08:00
-
This commit is contained in:
parent
4dd0c2e729
commit
b2109ce6ef
@ -401,6 +401,10 @@ 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();
|
||||||
|
if (result == null)
|
||||||
|
{
|
||||||
|
return "*";
|
||||||
|
}
|
||||||
if (result.Contains(".*") && this.IsSingle())
|
if (result.Contains(".*") && this.IsSingle())
|
||||||
{
|
{
|
||||||
return "*";
|
return "*";
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Linq.Expressions;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace SqlSugar
|
namespace SqlSugar
|
||||||
@ -35,10 +34,6 @@ namespace SqlSugar
|
|||||||
return result;
|
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()
|
public List<Result> GetListByPrimaryKeys<Result>(Func<T, double?> action) where Result : class, new()
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user