Skip to main content
A newer version of this page is available. .

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

Sets the primary key of a given projection.

Namespace: DevExpress.Mvvm.DataModel

Assembly: DevExpress.Mvvm.v19.1.DataModel.dll

Declaration

public static void SetProjectionPrimaryKey<TEntity, TProjection, TPrimaryKey>(
    this IRepository<TEntity, TPrimaryKey> repository,
    TProjection projectionEntity,
    TPrimaryKey primaryKey
)
    where TEntity : class

Parameters

Name Type Description
repository IRepository<TEntity, TPrimaryKey>

A repository.

projectionEntity TProjection

A projection.

primaryKey TPrimaryKey

A new primary key value.

Type Parameters

Name
TEntity
TProjection
TPrimaryKey
See Also