diff options
author | crupest <crupest@outlook.com> | 2022-12-21 16:42:07 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-12-21 16:42:07 +0800 |
commit | e5af550962befa6805beec0127e4064d4438df0a (patch) | |
tree | f0f9f56609f82e858489d3852165844b2f0434e2 /docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/TableInfo.cs | |
parent | 839e4fea3bd11b1b7e9e212e9fc2fbd3d94a6db1 (diff) | |
download | crupest-e5af550962befa6805beec0127e4064d4438df0a.tar.gz crupest-e5af550962befa6805beec0127e4064d4438df0a.tar.bz2 crupest-e5af550962befa6805beec0127e4064d4438df0a.zip |
Develop secret api. v55
Diffstat (limited to 'docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/TableInfo.cs')
-rw-r--r-- | docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/TableInfo.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/TableInfo.cs b/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/TableInfo.cs index 62ebc4a..6a88ee1 100644 --- a/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/TableInfo.cs +++ b/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/TableInfo.cs @@ -436,8 +436,8 @@ CREATE TABLE {tableName}( public virtual int SelectCount(IDbConnection dbConnection, IWhereClause? where = null, IOrderByClause? orderBy = null, int? skip = null, int? limit = null) { var (sql, parameters) = GenerateSelectSql("COUNT(*)", where, orderBy, skip, limit); - return dbConnection.QuerySingle<int>(sql, parameters); - + var result = dbConnection.QuerySingle<int>(sql, ConvertParameters(parameters)); + return result; } public virtual TResult MapDynamicTo<TResult>(dynamic d) |