.
This commit is contained in:
@@ -6,4 +6,6 @@ namespace VizhTalk.BuildingBlocks.Application.Configuration.Query;
|
||||
public interface IQueryHandler<in TQuery, TResult>
|
||||
where TQuery : IQuery<TResult>
|
||||
{
|
||||
Task<TResult> Handle(TQuery request, CancellationToken cancellationToken);
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace VizhTalk.BuildingBlocks.Application.Data;
|
||||
|
||||
public interface IGenericDapper<T> : IDisposable
|
||||
where T : class
|
||||
{
|
||||
Task<T?> GetAsync(string sql, object? param = null);
|
||||
Task<IEnumerable<T>> GetAllAsync(string sql, object? param = null);
|
||||
}
|
||||
Reference in New Issue
Block a user