Share via


ODataConventionModelBuilder.OnModelCreating Property

This action is invoked after the ODataConventionModelBuilder has run all the conventions, but before the configuration is locked down and used to build the IEdmModel .

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

Syntax

'Declaration
Public Property OnModelCreating As Action(Of ODataConventionModelBuilder)
    Get 
    Set
'Usage
Dim instance As ODataConventionModelBuilder 
Dim value As Action(Of ODataConventionModelBuilder)

value = instance.OnModelCreating

instance.OnModelCreating = value
public Action<ODataConventionModelBuilder> OnModelCreating { get; set; }
public:
property Action<ODataConventionModelBuilder^>^ OnModelCreating {
    Action<ODataConventionModelBuilder^>^ get ();
    void set (Action<ODataConventionModelBuilder^>^ value);
}
member OnModelCreating : Action<ODataConventionModelBuilder> with get, set
function get OnModelCreating () : Action<ODataConventionModelBuilder>
function set OnModelCreating (value : Action<ODataConventionModelBuilder>)

Property Value

Type: System.Action<ODataConventionModelBuilder>
The action to modify the ODataModelBuilder configuration that has been inferred by convention.

See Also

Reference

ODataConventionModelBuilder Class

System.Web.Http.OData.Builder Namespace