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

ExpressionHelper.GetKeyProperties<TPropertyOwner, TProperty>(Expression<Func<TPropertyOwner, TProperty>>) Method

Gets an array of PropertyInfo objects that describe the properties that comprise the primary key of the TPropertyOwner type.

Namespace: DevExpress.Mvvm.Utils

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

NuGet Packages: DevExpress.Scaffolding.Core, DevExpress.WindowsDesktop.Mvvm.DataModel

Declaration

public static PropertyInfo[] GetKeyProperties<TPropertyOwner, TProperty>(
    Expression<Func<TPropertyOwner, TProperty>> getPropertyExpression
)

Parameters

Name Type Description
getPropertyExpression Expression<Func<TPropertyOwner, TProperty>>

An expression that when compiled and evaluated returns the value of the primary key of an TPropertyOwner object.

Type Parameters

Name
TPropertyOwner
TProperty

Returns

Type
PropertyInfo[]
See Also