Class RepositoryBase<TEntity>
The base class for the repositories used to read and write data from a persistent storage.
Inherited Members
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 sourceRepositoryBase(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 sourceDbContext
Gets the underlying IDbContext.
Declaration
protected IDbContext DbContext { get; }
Property Value
| Type | Description |
|---|---|
| IDbContext |
DbSet
Gets the underlying IDbSet<TEntity>.
Declaration
protected IDbSet<TEntity> DbSet { get; }
Property Value
| Type | Description |
|---|---|
| IDbSet<TEntity> |