Interface IAppointmentArchiveRepository
- Namespace
- adas_core.Application.Repositories.Interfaces
- Assembly
- adas-core.Application.dll
public interface IAppointmentArchiveRepository
- Extension Methods
Methods
DeleteBeforeDate(DateTime)
Asynchronously deletes records that have a date earlier than the specified cutoff date.
Task DeleteBeforeDate(DateTime date)
Parameters
dateDateTimeThe cutoff date; records dated before this value will be removed.
Returns
InsertBatch(IEnumerable<PatientAppointment>)
Inserts a batch of patient appointments asynchronously, typically as part of a bulk import or synchronization process.
Task<long> InsertBatch(IEnumerable<PatientAppointment> appointment)
Parameters
appointmentIEnumerable<PatientAppointment>The collection of patient appointments to be inserted.
Returns
- Task<long>
A task that represents the asynchronous insert operation, containing a long value that represents the result of the batch insertion.
InsertOneAsync(PatientAppointment)
Asynchronously inserts a single patient appointment into the underlying data store.
Task InsertOneAsync(PatientAppointment patientAppointment)
Parameters
patientAppointmentPatientAppointmentThe patient appointment entity to be persisted.