Search Results for

    Show / Hide Table of Contents

    Class EventFileRepository

    Inheritance
    object
    EventFileRepository
    Implements
    IEventFileRepository
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OEMS.Core.Infrastructure.Repositories
    Assembly: OEMS.Core.dll
    Syntax
    public class EventFileRepository : IEventFileRepository

    Constructors

    EventFileRepository(IDbContextFactory<OEMSDBContext>)

    Declaration
    public EventFileRepository(IDbContextFactory<OEMSDBContext> contextFactory)
    Parameters
    Type Name Description
    IDbContextFactory<OEMSDBContext> contextFactory

    Methods

    AddEventFileAsync(EventFile)

    Adds a new event-file association to the repository.

    Declaration
    public 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
    public Task DeleteByFileIdAsync(Guid fileId)
    Parameters
    Type Name Description
    Guid fileId
    Returns
    Type Description
    Task

    A task representing the asynchronous operation

    GetEventFilesByEventIdAsync(Guid)

    Retrieves all file associations for a specific event.

    Declaration
    public 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

    Implements

    IEventFileRepository
    In this article
    Back to top Generated by DocFX