Share via


ODataQuerySettings.EnableConstantParameterization Property

Gets or sets a value indicating whether constants should be parameterized. Parameterizing constants would result in better performance with Entity framework.

Namespace:  System.Web.Http.OData.Query
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Syntax

'Declaration
Public Property EnableConstantParameterization As Boolean 
    Get 
    Set
'Usage
Dim instance As ODataQuerySettings 
Dim value As Boolean 

value = instance.EnableConstantParameterization

instance.EnableConstantParameterization = value
public bool EnableConstantParameterization { get; set; }
public:
property bool EnableConstantParameterization {
    bool get ();
    void set (bool value);
}
member EnableConstantParameterization : bool with get, set
function get EnableConstantParameterization () : boolean 
function set EnableConstantParameterization (value : boolean)

Property Value

Type: System.Boolean
The default value is true .

See Also

Reference

ODataQuerySettings Class

System.Web.Http.OData.Query Namespace