Skip to main content

InstantFeedbackCollectionViewModel<TEntity, TProjection, TPrimaryKey, TUnitOfWork>.CreateInstantFeedbackCollectionViewModel(IUnitOfWorkFactory<TUnitOfWork>, Func<TUnitOfWork, IRepository<TEntity, TPrimaryKey>>, Func<IRepositoryQuery<TEntity>, IQueryable<TProjection>>, Func<Boolean>) Method

Namespace: DevExpress.Mvvm.ViewModel

Assembly: DevExpress.Mvvm.v24.1.ViewModel.dll

NuGet Package: DevExpress.Scaffolding.Core

Declaration

public static InstantFeedbackCollectionViewModel<TEntity, TProjection, TPrimaryKey, TUnitOfWork> CreateInstantFeedbackCollectionViewModel(
    IUnitOfWorkFactory<TUnitOfWork> unitOfWorkFactory,
    Func<TUnitOfWork, IRepository<TEntity, TPrimaryKey>> getRepositoryFunc,
    Func<IRepositoryQuery<TEntity>, IQueryable<TProjection>> projection,
    Func<bool> canCreateNewEntity = null
)

Parameters

Name Type
unitOfWorkFactory IUnitOfWorkFactory<TUnitOfWork>
getRepositoryFunc Func<TUnitOfWork, IRepository<TEntity, TPrimaryKey>>
projection Func<IRepositoryQuery<TEntity>, IQueryable<TProjection>>

Optional Parameters

Name Type Default
canCreateNewEntity Func<Boolean> null

Returns

Type
InstantFeedbackCollectionViewModel<TEntity, TProjection, TPrimaryKey, TUnitOfWork>
See Also