.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

DataSourcePropertyAttribute(String) Constructor

Initializes a new instance of the DataSourcePropertyAttribute class with the specified DataSourcePropertyAttribute.DataSourceProperty property.

Namespace: DevExpress.Persistent.Base

Assembly: DevExpress.ExpressApp.v21.1.dll


public DataSourcePropertyAttribute(
    string dataSourceProperty


Name Type Description
dataSourceProperty String

A string value representing the name of a business class collection property which serves as a source for the Lookup Property Editor of the target Object type business class property.


You can specify the data source for the Lookup Property Editor’s List View in case the property specified by the dataSourceProperty parameter is not set. For this purpose, use a constructor with the DataSourcePropertyAttribute.DataSourcePropertyIsNullMode and \ or DataSourcePropertyAttribute.DataSourcePropertyIsNullCriteria parameters.

See Also