Skip to main content

GetSourceEventArgs.KeyExpression Property

Gets or sets the name of the key property.

Namespace: DevExpress.Data.WcfLinq

Assembly: DevExpress.Data.v22.2.dll

NuGet Package: DevExpress.Data


public string KeyExpression { get; set; }

Property Value

Type Description

A String value indicating the key property name.


Use this property in a WcfInstantFeedbackSource.GetSource event handler to specify the name of the key property contained in a queryable source that is provided via the GetSourceEventArgs.Query property. Usually, the KeyExpression property specifies the name of the property mapped to the primary key column in the database.

By default, the KeyExpression property is initialized by the WcfInstantFeedbackSource.KeyExpression property value.

See Also