hrms-api-backend/BMA.EHR.Application/Common/Interfaces/IGenericRepository.cs
Suphonchai Phoonsawat a0b3b13074 Add MetaData Table From ExistData
Change to use MySQL
2023-06-26 14:02:04 +07:00

19 lines
385 B
C#

using BMA.EHR.Domain.Common;
using Microsoft.AspNetCore.Http;
namespace BMA.EHR.Application.Common.Interfaces
{
public interface IGenericRepository<S, T> where T : class
{
Task<T?> GetByIdAsync(S id);
Task<IReadOnlyList<T>> GetAllAsync();
Task<T> AddAsync(T entity);
Task<T> UpdateAsync(T entity);
Task DeleteAsync(T entity);
}
}