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.v24.1.DataModel.dll
NuGet Package: DevExpress.Scaffolding.Core
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