BMA EHR API Document
Loading...
Searching...
No Matches
BMA.EHR.Application.Repositories.Leaves.GenericLeaveRepository< S, T > Class Template Reference
Inheritance diagram for BMA.EHR.Application.Repositories.Leaves.GenericLeaveRepository< S, T >:
Collaboration diagram for BMA.EHR.Application.Repositories.Leaves.GenericLeaveRepository< S, T >:

Public Member Functions

 GenericLeaveRepository (ILeaveDbContext dbContext, IHttpContextAccessor httpContextAccessor)
 
virtual async Task< IReadOnlyList< T > > GetAllAsync ()
 
virtual async Task< T?> GetByIdAsync (S id)
 
virtual async Task< T > AddAsync (T entity)
 
virtual async Task< T > UpdateAsync (T entity)
 
virtual async Task DeleteAsync (T entity)
 

Properties

string? UserId [get]
 
string? FullName [get]
 
bool? IsPlacementAdmin [get]
 

Constructor & Destructor Documentation

◆ GenericLeaveRepository()

BMA.EHR.Application.Repositories.Leaves.GenericLeaveRepository< S, T >.GenericLeaveRepository ( ILeaveDbContext  dbContext,
IHttpContextAccessor  httpContextAccessor 
)
inline

Member Function Documentation

◆ AddAsync()

virtual async Task< T > BMA.EHR.Application.Repositories.Leaves.GenericLeaveRepository< S, T >.AddAsync ( entity)
inlinevirtual

◆ DeleteAsync()

◆ GetAllAsync()

virtual async Task< IReadOnlyList< T > > BMA.EHR.Application.Repositories.Leaves.GenericLeaveRepository< S, T >.GetAllAsync ( )
inlinevirtual

◆ GetByIdAsync()

virtual async Task< T?> BMA.EHR.Application.Repositories.Leaves.GenericLeaveRepository< S, T >.GetByIdAsync ( id)
inlinevirtual

◆ UpdateAsync()

virtual async Task< T > BMA.EHR.Application.Repositories.Leaves.GenericLeaveRepository< S, T >.UpdateAsync ( entity)
inlinevirtual

Property Documentation

◆ FullName

◆ IsPlacementAdmin

bool? BMA.EHR.Application.Repositories.Leaves.GenericLeaveRepository< S, T >.IsPlacementAdmin
getprotected

◆ UserId


The documentation for this class was generated from the following file: