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

public Action<ODataConventionModelBuilder> OnModelCreating {
    [CompilerGeneratedAttribute]
    get;
    [CompilerGeneratedAttribute]
    set;
}
public:
property Action<ODataConventionModelBuilder^>^ OnModelCreating {
    [CompilerGeneratedAttribute]
    Action<ODataConventionModelBuilder^>^ get();
    [CompilerGeneratedAttribute]
    void set(Action<ODataConventionModelBuilder^>^ value);
}
member OnModelCreating : Action<ODataConventionModelBuilder> with get, set
Public Property OnModelCreating As Action(Of ODataConventionModelBuilder)

Property Value

Type: System.Action<ODataConventionModelBuilder>

Remarks

Use this action to modify the ODataModelBuilder configuration that has been inferred by convention.

See Also

ODataConventionModelBuilder Class
System.Web.Http.OData.Builder Namespace

Return to top