ODataConventionModelBuilder Constructor
Namespace: System.Web.Http.OData.Builder
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Overload List
Name | Description | |
---|---|---|
ODataConventionModelBuilder() | Initializes a new instance of the ODataConventionModelBuilder class. |
|
ODataConventionModelBuilder(HttpConfiguration) | Initializes a new ODataConventionModelBuilder. |
|
ODataConventionModelBuilder(HttpConfiguration, Boolean) | Initializes a new instance of the ODataConventionModelBuilder class. |
See Also
ODataConventionModelBuilder Class
System.Web.Http.OData.Builder Namespace
Return to top
ODataConventionModelBuilder Constructor ()
Initializes a new instance of the ODataConventionModelBuilder class.
Syntax
public ODataConventionModelBuilder()
public:
ODataConventionModelBuilder()
new : unit -> ODataConventionModelBuilder
Public Sub New
Return to top
ODataConventionModelBuilder Constructor (HttpConfiguration)
Initializes a new ODataConventionModelBuilder.
Syntax
public ODataConventionModelBuilder(
HttpConfiguration configuration
)
public:
ODataConventionModelBuilder(
HttpConfiguration^ configuration
)
new :
configuration:HttpConfiguration -> ODataConventionModelBuilder
Public Sub New (
configuration As HttpConfiguration
)
Parameters
configuration
Type: System.Web.Http.HttpConfigurationThe HttpConfiguration to use.
Return to top
ODataConventionModelBuilder Constructor (HttpConfiguration, Boolean)
Initializes a new instance of the ODataConventionModelBuilder class.
Syntax
public ODataConventionModelBuilder(
HttpConfiguration configuration,
bool isQueryCompositionMode
)
public:
ODataConventionModelBuilder(
HttpConfiguration^ configuration,
bool isQueryCompositionMode
)
new :
configuration:HttpConfiguration *
isQueryCompositionMode:bool -> ODataConventionModelBuilder
Public Sub New (
configuration As HttpConfiguration,
isQueryCompositionMode As Boolean
)
Parameters
configuration
Type: System.Web.Http.HttpConfigurationThe HttpConfiguration to use.
isQueryCompositionMode
Type: System.BooleanIf the model is being built for only querying.
Remarks
The model built if isQueryCompositionMode is true has more relaxed inference rules and also treats all types as entity types. This constructor is intended for use by unit testing only.
Return to top