Interface IEventFileRepository
Defines the contract for event-file association data access operations.
Namespace: OEMS.Core.Domain.RepoInterfaces
Assembly: OEMS.Core.dll
Syntax
public interface IEventFileRepository
Methods
AddEventFileAsync(EventFile)
Adds a new event-file association to the repository.
Declaration
Task<EventFile> AddEventFileAsync(EventFile eventFile)
Parameters
Type | Name | Description |
---|---|---|
EventFile | eventFile | The event-file association to add |
Returns
Type | Description |
---|---|
Task<EventFile> | The created event-file association |
DeleteByFileIdAsync(Guid)
Deletes all event-file associations for a specific file.
Declaration
Task DeleteByFileIdAsync(Guid id)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | The identifier of the file |
Returns
Type | Description |
---|---|
Task | A task representing the asynchronous operation |
GetEventFilesByEventIdAsync(Guid)
Retrieves all file associations for a specific event.
Declaration
Task<List<EventFile>> GetEventFilesByEventIdAsync(Guid eventId)
Parameters
Type | Name | Description |
---|---|---|
Guid | eventId | The identifier of the event |
Returns
Type | Description |
---|---|
Task<List<EventFile>> | A list of event-file associations for the specified event |