Search Results for

    Show / Hide Table of Contents

    Interface IRepository<TId, TDocument, TFilter>

    Basic repository

    Inherited Members
    IReadOnlyRepository<TId, TDocument, TFilter>.GetAsync(TId)
    IReadOnlyRepository<TId, TDocument, TFilter>.GetAllAsync()
    IReadOnlyRepository<TId, TDocument, TFilter>.GetByFilterAsync(TFilter)
    IReadOnlyRepository<TId, TDocument, TFilter>.FindAsync(TFilter, Nullable<Int32>, Nullable<Int32>, String, Boolean)
    System.IDisposable.Dispose()
    Namespace: Simplic.Data.NoSql
    Assembly: Simplic.Data.dll
    Syntax
    public interface IRepository<TId, TDocument, TFilter> : IReadOnlyRepository<TId, TDocument, TFilter>, IDisposable where TDocument : IDocument<TId> where TFilter : IFilter<TId>
    Type Parameters
    Name Description
    TId

    PK (ID) type

    TDocument

    Entity type

    TFilter

    Filter type

    Methods

    | Improve this Doc View Source

    CommitAsync()

    Commit data

    Declaration
    Task<int> CommitAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Int32>

    Amount of changed data

    | Improve this Doc View Source

    CreateAsync(TDocument)

    Create new entity

    Declaration
    Task CreateAsync(TDocument entity)
    Parameters
    Type Name Description
    TDocument entity

    Entity to create

    Returns
    Type Description
    System.Threading.Tasks.Task
    | Improve this Doc View Source

    DeleteAsync(TId)

    Mark entity as deleted in database

    Declaration
    Task DeleteAsync(TId id)
    Parameters
    Type Name Description
    TId id

    Entity id

    Returns
    Type Description
    System.Threading.Tasks.Task
    | Improve this Doc View Source

    UpdateAsync(TDocument)

    Update an entity in the database

    Declaration
    Task UpdateAsync(TDocument obj)
    Parameters
    Type Name Description
    TDocument obj
    Returns
    Type Description
    System.Threading.Tasks.Task
    | Improve this Doc View Source

    UpsertAsync(TFilter, TDocument)

    Upsert an entity

    Declaration
    Task UpsertAsync(TFilter filter, TDocument entity)
    Parameters
    Type Name Description
    TFilter filter

    Filter for upserting

    TDocument entity

    Entity instance

    Returns
    Type Description
    System.Threading.Tasks.Task
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx