Interface IQueryableUnitOfWork
- Namespace
- eQuantic.Core.Data.Repository
- Assembly
- eQuantic.Core.Data.dll
A unit of work whose repositories are backed by an IQueryable<T> data source.
public interface IQueryableUnitOfWork : IUnitOfWork, IDisposable
- Inherited Members
Methods
CreateSet<TEntity>()
Returns an ISet<TEntity> for accessing entities of the given type in the context.
ISet<TEntity> CreateSet<TEntity>() where TEntity : class, IEntity
Returns
- ISet<TEntity>
The entity set.
Type Parameters
TEntityThe entity type.
GetAsyncQueryableRepository<TEntity, TKey>()
Gets the asynchronous queryable entity repository instance.
IAsyncQueryableRepository<TEntity, TKey> GetAsyncQueryableRepository<TEntity, TKey>() where TEntity : class, IEntity<TKey>
Returns
- IAsyncQueryableRepository<TEntity, TKey>
The asynchronous queryable repository.
Type Parameters
TEntityThe entity type.
TKeyThe type of the entity key.
GetQueryableRepository<TEntity, TKey>()
Gets the queryable entity repository instance.
IQueryableRepository<TEntity, TKey> GetQueryableRepository<TEntity, TKey>() where TEntity : class, IEntity<TKey>
Returns
- IQueryableRepository<TEntity, TKey>
The queryable repository.
Type Parameters
TEntityThe entity type.
TKeyThe type of the entity key.