old_flsystem/类库/SqlSugar/ExpressionsToSql/Subquery/Items/SubCount.cs

49 lines
780 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
namespace SqlSugar
{
public class SubCount: ISubOperation
{
public bool HasWhere
{
get; set;
}
public string Name
{
get
{
return "Count";
}
}
public Expression Expression
{
get; set;
}
public int Sort
{
get
{
return 200;
}
}
public ExpressionContext Context
{
get; set;
}
public string GetValue(Expression expression)
{
return "COUNT(*)";
}
}
}