mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 12:28:15 +08:00
- 增加 SqlExt.DistinctCount 扩展方法;#674 #533
This commit is contained in:
@ -117,6 +117,18 @@ namespace FreeSql
|
||||
return default(TValue);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// count(distinct name)
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="column"></param>
|
||||
/// <returns></returns>
|
||||
public static long DistinctCount<T>(T column)
|
||||
{
|
||||
expContext.Value.Result = $"count(distinct {expContext.Value.ParsedContent["column"]})";
|
||||
return 0;
|
||||
}
|
||||
|
||||
#region 大小判断
|
||||
/// <summary>
|
||||
/// 大于 >
|
||||
|
Reference in New Issue
Block a user