You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
622 B
39 lines
622 B
using System.Linq.Expressions;
|
|
|
|
namespace SqlSugar
|
|
{
|
|
public class SubCount: ISubOperation
|
|
{
|
|
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(*)";
|
|
}
|
|
}
|
|
}
|