Class EfCoreAggregateRepository<TEntity, TKey>
- Namespace
- Savvyio.Extensions.EFCore.Domain
- Assembly
- Savvyio.Extensions.EFCore.Domain.dll
Provides an implementation of the EfCoreRepository<TEntity, TKey> that is optimized for Domain Driven Design.
public class EfCoreAggregateRepository<TEntity, TKey> : EfCoreRepository<TEntity, TKey>, IAggregateRepository<TEntity, TKey>, IPersistentRepository<TEntity, TKey>, IWritableRepository<TEntity, TKey>, IReadableRepository<TEntity, TKey>, ISearchableRepository<TEntity, TKey>, IDeletableRepository<TEntity, TKey>, IRepository<TEntity, TKey> where TEntity : class, IAggregateRoot<IDomainEvent, TKey>
Type Parameters
TEntityThe type of the entity that implements the IAggregateRoot<TEvent> interface.
TKeyThe type of the key that uniquely identifies the entity.
- Inheritance
-
EfCoreRepository<TEntity, TKey>EfCoreAggregateRepository<TEntity, TKey>
- Implements
-
IAggregateRepository<TEntity, TKey>IPersistentRepository<TEntity, TKey>IWritableRepository<TEntity, TKey>IReadableRepository<TEntity, TKey>ISearchableRepository<TEntity, TKey>IDeletableRepository<TEntity, TKey>IRepository<TEntity, TKey>
- Inherited Members
Constructors
EfCoreAggregateRepository(IEfCoreDataSource)
Initializes a new instance of the EfCoreRepository<TEntity, TKey> class.
public EfCoreAggregateRepository(IEfCoreDataSource source)
Parameters
sourceIEfCoreDataSourceThe IEfCoreDataSource that handles actual I/O communication with a source of data.
See Also
EfCoreRepository<TEntity, TKey>