Interface ISectionRepository
- Namespace
- adas_core.Application.Repositories.Interfaces
- Assembly
- adas-core.Application.dll
public interface ISectionRepository : IMongoRepository<Section>
- Inherited Members
- Extension Methods
Methods
FindById(object)
Asynchronously retrieves a Section by its identifier, returning null when no matching section is found.
Task<Section?> FindById(object id)
Parameters
idobjectThe identifier of the section to look up.
Returns
- Task<Section>
A task that represents the asynchronous operation. The task result contains the matching Section, or
nullif no section with the specified identifier exists.
FindById(string)
Asynchronously retrieves the Section that matches the specified identifier.
Returns null when no matching section is found.
Task<Section?> FindById(string id)
Parameters
idstringThe unique identifier of the section to look up.
Returns
- Task<Section>
A Task<TResult> that resolves to the matching Section, or
nullif no section is found.
FindByLocation(PatientLocation)
Retrieves a list of sections associated with the specified patient location.
Task<List<Section>> FindByLocation(PatientLocation location)
Parameters
locationPatientLocationThe patient location used to filter the sections.
Returns
- Task<List<Section>>
A task that represents the asynchronous operation. The task result contains the list of sections matching the specified patient location.
FindByPointOfCare(string)
Asynchronously retrieves the Section associated with the specified point of care.
Task<Section?> FindByPointOfCare(string pointOfCare)
Parameters
pointOfCarestringThe point of care identifier used to look up the section.
Returns
- Task<Section>
A task that returns the matching Section, or
nullif no section is found for the given point of care.
FindBySection(string)
Asynchronously retrieves a Section that matches the specified section identifier.
Task<Section?> FindBySection(string section)
Parameters
Returns
- Task<Section>
A Task<TResult> that yields the matching Section, or
nullif no section is found.
GetAll()
Asynchronously retrieves all sections.
Task<List<Section>> GetAll()
Returns
- Task<List<Section>>
A task that represents the asynchronous operation. The task result contains a list of all Section items.
InsertOneSection(Section)
Inserts a single Section into the underlying data store and returns the inserted entity, or null if the operation did not produce a result.
Task<Section?> InsertOneSection(Section section)
Parameters
Returns
- Task<Section>
A Task<TResult> that resolves to the inserted Section, or null if no section was inserted.
UpdateSection(Section)
Updates the specified section in the system and returns the updated entity.
Task<Section?> UpdateSection(Section section)
Parameters
sectionSectionThe section entity containing the updated information.