Skip to main content

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

Creates a new IInstantFeedbackSource instance.

Namespace: DevExpress.Mvvm.DataModel

Assembly: DevExpress.Mvvm.v23.2.DataModel.dll

NuGet Package: DevExpress.Scaffolding.Core

Declaration

IInstantFeedbackSource<TProjection> CreateInstantFeedbackSource<TEntity, TProjection, TPrimaryKey>(
    Func<TUnitOfWork, IRepository<TEntity, TPrimaryKey>> getRepositoryFunc,
    Func<IRepositoryQuery<TEntity>, IQueryable<TProjection>> projection
)
    where TEntity : class, new()
    where TProjection : class

Parameters

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

Type Parameters

Name
TEntity
TProjection
TPrimaryKey

Returns

Type
IInstantFeedbackSource<TProjection>
See Also