aboutsummaryrefslogtreecommitdiff
path: root/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-12-21 16:32:38 +0800
committercrupest <crupest@outlook.com>2022-12-21 16:32:38 +0800
commit673aeab45542400efcbbe7f400c806af7b336df1 (patch)
tree7a707dea3daa2c860a0bb215fef44bbcf76f4efc /docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs
parentdbeec571d95c42de6c86e04239256d9a0f698a91 (diff)
downloadcrupest-673aeab45542400efcbbe7f400c806af7b336df1.tar.gz
crupest-673aeab45542400efcbbe7f400c806af7b336df1.tar.bz2
crupest-673aeab45542400efcbbe7f400c806af7b336df1.zip
Develop secret api. v54
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 a92eb66..abae774 100644
--- a/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs
+++ b/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs
@@ -82,11 +82,11 @@ public class CrudService<TEntity> : IDisposable where TEntity : class
return result;
}
- public string Create(TEntity entity)
+ public object Create(TEntity entity)
{
var insertClause = ConvertEntityToInsertClauses(entity);
var key = _table.Insert(_dbConnection, insertClause);
- return (string)key;
+ return key;
}
public IUpdateClause ConvertEntityToUpdateClauses(TEntity entity, UpdateBehavior behavior)