aboutsummaryrefslogtreecommitdiff
path: root/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-12-12 16:21:44 +0800
committercrupest <crupest@outlook.com>2022-12-20 20:32:53 +0800
commit48742e28c612b9c1b2b1435cdd32152f61041645 (patch)
treee474fb98d41de5b48b2e9b11cc2909dda2fc9b6a /docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs
parent24d42e5eb284267966aee8bb687710bfcbc1a255 (diff)
downloadcrupest-48742e28c612b9c1b2b1435cdd32152f61041645.tar.gz
crupest-48742e28c612b9c1b2b1435cdd32152f61041645.tar.bz2
crupest-48742e28c612b9c1b2b1435cdd32152f61041645.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.cs4
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, );