Search Results for

    Show / Hide Table of Contents

    Class ProcessStepTemplateRepository

    Inheritance
    object
    ProcessStepTemplateRepository
    Implements
    IProcessStepTemplateRepository
    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 ProcessStepTemplateRepository : IProcessStepTemplateRepository

    Constructors

    ProcessStepTemplateRepository(IDbContextFactory<OEMSDBContext>)

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

    Methods

    CreateAsync(ProcessStepTemplate)

    Creates a process step template. Asigns GUID and saves to DB

    Declaration
    public Task<Guid> CreateAsync(ProcessStepTemplate template)
    Parameters
    Type Name Description
    ProcessStepTemplate template
    Returns
    Type Description
    Task<Guid>

    DeleteAsync(Guid)

    Deletes a process step template by its id

    Declaration
    public Task DeleteAsync(Guid id)
    Parameters
    Type Name Description
    Guid id

    ProcessStepTemplate GUID to be deleted

    Returns
    Type Description
    Task

    ExistsAsync(Guid)

    Declaration
    public Task<bool> ExistsAsync(Guid id)
    Parameters
    Type Name Description
    Guid id
    Returns
    Type Description
    Task<bool>

    GetAllAsync()

    Declaration
    public Task<IEnumerable<ProcessStepTemplate>> GetAllAsync()
    Returns
    Type Description
    Task<IEnumerable<ProcessStepTemplate>>

    GetByIdAsync(Guid)

    Gets a process step template by its id

    Declaration
    public Task<ProcessStepTemplate> GetByIdAsync(Guid id)
    Parameters
    Type Name Description
    Guid id

    process tep ttemplate GUID of template to be get

    Returns
    Type Description
    Task<ProcessStepTemplate>

    Process step Template

    GetByOrganizationIdAsync(Guid)

    Gets all Process step templates for a given organization

    Declaration
    public Task<IEnumerable<ProcessStepTemplate>> GetByOrganizationIdAsync(Guid organizationId)
    Parameters
    Type Name Description
    Guid organizationId

    organization GUID

    Returns
    Type Description
    Task<IEnumerable<ProcessStepTemplate>>

    IEnumerable of type ProcessStepTemplate

    GetByProcessTemplateIdAsync(Guid)

    Gets a process step template by its id

    Declaration
    public Task<IEnumerable<ProcessStepTemplate>> GetByProcessTemplateIdAsync(Guid processTemplateId)
    Parameters
    Type Name Description
    Guid processTemplateId
    Returns
    Type Description
    Task<IEnumerable<ProcessStepTemplate>>

    IEnmuerable ProcessStepTemplate

    GetMaxSequenceForProcessTemplateAsync(Guid)

    Declaration
    public Task<int> GetMaxSequenceForProcessTemplateAsync(Guid processTemplateId)
    Parameters
    Type Name Description
    Guid processTemplateId
    Returns
    Type Description
    Task<int>

    UpdateAsync(ProcessStepTemplate)

    Updates a given process step template

    Declaration
    public Task UpdateAsync(ProcessStepTemplate template)
    Parameters
    Type Name Description
    ProcessStepTemplate template
    Returns
    Type Description
    Task

    UpdateSequenceAsync(Guid, int)

    Declaration
    public Task UpdateSequenceAsync(Guid id, int newSequence)
    Parameters
    Type Name Description
    Guid id
    int newSequence
    Returns
    Type Description
    Task

    Implements

    IProcessStepTemplateRepository
    In this article
    Back to top Generated by DocFX