Export (0) Print
Expand All

EntityDataSource.SelectParameters Property

Gets the collection of parameters that are used to create the projection.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web.Entity (in System.Web.Entity.dll)

[<BrowsableAttribute(false)>]
[<PersistenceModeAttribute(PersistenceMode.InnerProperty)>]
member SelectParameters : ParameterCollection with get

Property Value

Type: System.Web.UI.WebControls.ParameterCollection
The parameters that are used for creating the projection.

Like the Select method of the ObjectQuery(T) class, parameters can be passed to the projection that is defined by the Select property. The SelectParameters property of the EntityDataSource control specifies a ParameterCollection that contains the parameters to supply to the SELECT statement of the query. The SelectParameters property uses named arguments to refer to the parameters that are specified in the string that is supplied to the Select property.

If the SelectParameters property is not set, no parameter substitution is made. All the parameter names in the SELECT statement, prefixed by the "@" symbol, must have a matching name in the ParameterCollection. Null values are not allowed for parameters in a ParameterCollection.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft