# Count

查询满足条件的数据条数

# 基本用法示例

var request = new SqlessCountRequest()
{
    Table = Tables.User
};
int count = await sqless.Count(request);
1
2
3
4
5

# Distinct

不相同的记录条数。在下面示例中,查询结果为 Name 不同的记录条数

# 示例

var request = new SqlessCountRequest()
{
    Table = Tables.User,
    Distinct = true,
    Field = "Name"
};
int count = await sqless.Count(request);
1
2
3
4
5
6
7
Last Updated: 12/10/2020, 10:26:39 PM