Interface IPoCSettingsRepository
- Namespace
- adas_core.Application.Repositories.Interfaces
- Assembly
- adas-core.Application.dll
public interface IPoCSettingsRepository : IMongoRepository<PoCSettings>
- Inherited Members
- Extension Methods
Methods
Delete(ObjectId)
Asynchronously deletes the entity identified by the specified MongoDB.Bson.ObjectId.
Task Delete(ObjectId id)
Parameters
idObjectIdThe MongoDB.Bson.ObjectId of the entity to delete.
Returns
FindAll()
Asynchronously retrieves all PoCSettings records.
Task<List<PoCSettings>> FindAll()
Returns
- Task<List<PoCSettings>>
A task that represents the asynchronous operation. The task result contains a list of all PoCSettings entries.
FindById(ObjectId)
Retrieves the PoC (Proof of Concept) settings associated with the specified identifier.
Task<PoCSettings?> FindById(ObjectId id)
Parameters
idObjectIdThe unique identifier of the PoC settings to retrieve.
Returns
- Task<PoCSettings>
A task that represents the asynchronous operation. The result contains the matching PoCSettings if found, or
nullwhen no settings exist for the given identifier.
FindByLocation(PatientLocation)
Asynchronously retrieves the Point of Care (PoC) settings associated with the specified patient location.
Task<PoCSettings?> FindByLocation(PatientLocation location)
Parameters
locationPatientLocationThe patient location used to look up the corresponding PoC settings.
Returns
- Task<PoCSettings>
A task that returns the matching PoCSettings if found; otherwise,
null.
Update(PoCSettings)
Updates the PoC (Proof of Concept) settings with the provided values.
Task Update(PoCSettings pocSettings)
Parameters
pocSettingsPoCSettingsThe PoC settings to be applied.
Returns
- Task
A task that represents the asynchronous update operation.