Skip to main content

CollectionViewModelBase<TEntity, TProjection, TPrimaryKey, TUnitOfWork> Constructors

The base class for POCO view models exposing a collection of entities of a given type and CRUD operations against these entities.

It is not recommended to inherit directly from this class. Use the CollectionViewModel class instead.

Name Parameters Description
CollectionViewModelBase(IUnitOfWorkFactory<TUnitOfWork>, Func<TUnitOfWork, IRepository<TEntity, TPrimaryKey>>, Func<IRepositoryQuery<TEntity>, IQueryable<TProjection>>, Action<TEntity>, Func<Boolean>, Boolean, UnitOfWorkPolicy) unitOfWorkFactory, getRepositoryFunc, projection, newEntityInitializer, canCreateNewEntity, ignoreSelectEntityMessage, unitOfWorkPolicy Initializes a new instance of the CollectionViewModelBase<TEntity, TProjection, TPrimaryKey, TUnitOfWork> class with specified settings.
See Also