Skip to main content

RepositoryExtensions.GetSinglePropertyPrimaryKeyProjectionProperty<TEntity, TProjection, TPrimaryKey>(IRepository<TEntity, TPrimaryKey>) Method

Namespace: DevExpress.Mvvm.DataModel

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

NuGet Package: DevExpress.Scaffolding.Core

Declaration

public static Expression<Func<TProjection, TPrimaryKey>> GetSinglePropertyPrimaryKeyProjectionProperty<TEntity, TProjection, TPrimaryKey>(
    this IRepository<TEntity, TPrimaryKey> repository
)
    where TEntity : class

Parameters

Name Type
repository IRepository<TEntity, TPrimaryKey>

Type Parameters

Name
TEntity
TProjection
TPrimaryKey

Returns

Type
Expression<Func<TProjection, TPrimaryKey>>
See Also