Show / Hide Table of Contents

    Class RepositoryBase<TEntity>

    The base class for the repositories used to read and write data from a persistent storage.

    Inheritance
    object
    RepositoryBase<TEntity>
    DbInboundLog
    DbOffsetStore
    DbOutboxReader
    DbOutboxWriter
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Silverback.Infrastructure
    Assembly: Silverback.Integration.dll
    Syntax
    public abstract class RepositoryBase<TEntity> where TEntity : class
    Type Parameters
    Name Description
    TEntity

    The type of the entities being managed by the repository.

    Constructors

    | Improve this doc View source

    RepositoryBase(IDbContext)

    Initializes a new instance of the RepositoryBase<TEntity> class.

    Declaration
    protected RepositoryBase(IDbContext dbContext)
    Parameters
    Type Name Description
    IDbContext dbContext

    The IDbContext to be used.

    Properties

    | Improve this doc View source

    DbContext

    Gets the underlying IDbContext.

    Declaration
    protected IDbContext DbContext { get; }
    Property Value
    Type Description
    IDbContext
    | Improve this doc View source

    DbSet

    Gets the underlying IDbSet<TEntity>.

    Declaration
    protected IDbSet<TEntity> DbSet { get; }
    Property Value
    Type Description
    IDbSet<TEntity>
    • Improve this doc
    • View source
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini