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