From b55a980d665b5ab37f219b0dbcde09ecd23b0b75 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 14 Dec 2022 15:58:41 +0800 Subject: Develop secret api. v38 --- .../crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs') diff --git a/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs b/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs index 5d73002..796761e 100644 --- a/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs +++ b/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs @@ -4,7 +4,6 @@ using Dapper; namespace CrupestApi.Commons.Crud; -// TODO: Register this. public class CrudService : IDisposable where TEntity : class { protected readonly TableInfo _table; @@ -38,4 +37,10 @@ public class CrudService : IDisposable where TEntity : class { _dbConnection.Dispose(); } + + public List GetAll() + { + var result = _table.Select(_dbConnection, null); + return result; + } } -- cgit v1.2.3