diff options
author | crupest <crupest@outlook.com> | 2022-12-12 16:21:44 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-12-20 20:32:53 +0800 |
commit | 97c79f919fcdf5c2434d5257ba3f784ed1c63977 (patch) | |
tree | e474fb98d41de5b48b2e9b11cc2909dda2fc9b6a /docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs | |
parent | 7a8de2eb8b585d34335887b217007b394e065e66 (diff) | |
download | crupest-97c79f919fcdf5c2434d5257ba3f784ed1c63977.tar.gz crupest-97c79f919fcdf5c2434d5257ba3f784ed1c63977.tar.bz2 crupest-97c79f919fcdf5c2434d5257ba3f784ed1c63977.zip |
Develop secret api. v30
Diffstat (limited to 'docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs')
-rw-r--r-- | docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs b/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs index 9400a7b..53424a4 100644 --- a/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs +++ b/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs @@ -41,7 +41,7 @@ public class CrudService<TEntity> : IDisposable where TEntity : class public List<TEntity> Select(IWhereClause? filter) { - return _table.Select(_dbConnection, filter).Cast<TEntity>().ToList(); + return _table.Select<TEntity>(_dbConnection, null, filter).ToList(); } public bool Exists(IWhereClause? filter) @@ -60,7 +60,7 @@ public class CrudService<TEntity> : IDisposable where TEntity : class return _table.Insert(_dbConnection, insertClause); } - // Return the key. + // Return the key. TODO: Continue here. public object Insert(TEntity entity) { return _table.Insert(_dbConnection, ); |