Class EfCoreRepository<TEntity, TKey, TMarker>
- Namespace
- Savvyio.Extensions.DependencyInjection.EFCore
- Assembly
- Savvyio.Extensions.DependencyInjection.EFCore.dll
Provides a default implementation of the IPersistentRepository<TEntity, TKey, TMarker> interface to support multiple implementations that serves as an abstraction layer before the actual I/O communication with a source of data using Microsoft Entity Framework Core.
public class EfCoreRepository<TEntity, TKey, TMarker> : EfCoreRepository<TEntity, TKey>, IPersistentRepository<TEntity, TKey, TMarker>, IPersistentRepository<TEntity, TKey>, IWritableRepository<TEntity, TKey, TMarker>, IWritableRepository<TEntity, TKey>, IReadableRepository<TEntity, TKey, TMarker>, IReadableRepository<TEntity, TKey>, ISearchableRepository<TEntity, TKey, TMarker>, ISearchableRepository<TEntity, TKey>, IDeletableRepository<TEntity, TKey, TMarker>, IRepository<TEntity, TKey, TMarker>, IDependencyInjectionMarker<TMarker>, IDeletableRepository<TEntity, TKey>, IRepository<TEntity, TKey> where TEntity : class, IIdentity<TKey>
Type Parameters
TEntityThe type of the entity.
TKeyThe type of the key that uniquely identifies the entity.
TMarkerThe type used to mark the implementation that this repository represents. Optimized for Microsoft Dependency Injection.
- Inheritance
-
EfCoreRepository<TEntity, TKey>EfCoreRepository<TEntity, TKey, TMarker>
- Implements
-
IPersistentRepository<TEntity, TKey, TMarker>IPersistentRepository<TEntity, TKey>IWritableRepository<TEntity, TKey, TMarker>IWritableRepository<TEntity, TKey>IReadableRepository<TEntity, TKey, TMarker>IReadableRepository<TEntity, TKey>ISearchableRepository<TEntity, TKey, TMarker>ISearchableRepository<TEntity, TKey>IDeletableRepository<TEntity, TKey, TMarker>IRepository<TEntity, TKey, TMarker>IDependencyInjectionMarker<TMarker>IDeletableRepository<TEntity, TKey>IRepository<TEntity, TKey>
- Inherited Members
Constructors
EfCoreRepository(IEfCoreDataSource<TMarker>)
Initializes a new instance of the EfCoreRepository<TEntity, TKey, TMarker> class.
public EfCoreRepository(IEfCoreDataSource<TMarker> source)
Parameters
sourceIEfCoreDataSource<TMarker>The IEfCoreDataSource that handles actual I/O communication with a source of data.
See Also
EfCoreRepository<TEntity, TKey>
IPersistentRepository<TEntity, TKey, TMarker>