Add project files.
This commit is contained in:
parent
cc6b248537
commit
717b0f0a8e
31 changed files with 1296 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
|||
using BMA.EHR.Domain.Entities.MetaData;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace BMA.EHR.Application.Common.Interfaces
|
||||
{
|
||||
public interface IApplicationDBContext
|
||||
{
|
||||
DbSet<PrefixEntity> Prefixes { get; set; }
|
||||
|
||||
DbSet<BloodGroupEntity> BloodGroups { get; set; }
|
||||
|
||||
Task<int> SaveChangesAsync();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
namespace BMA.EHR.Application.Common.Interfaces
|
||||
{
|
||||
public interface IGenericRepository<S,T> where T : class
|
||||
{
|
||||
Task<T?> GetByIdAsync(S id);
|
||||
|
||||
Task<IReadOnlyList<T>> GetAllAsync();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue