ODataConventionModelBuilder Class

 

ODataConventionModelBuilder is used to automatically map CLR classes to an EDM model based on a set of T:System.Web.Http.OData.Builder.Conventions.IConvention.

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

System::Object
  System.Web.Http.OData.Builder::ODataModelBuilder
    System.Web.Http.OData.Builder::ODataConventionModelBuilder

public ref class ODataConventionModelBuilder : ODataModelBuilder

NameDescription
System_CAPS_pubmethodODataConventionModelBuilder()

Initializes a new instance of the ODataConventionModelBuilder class.

System_CAPS_pubmethodODataConventionModelBuilder(HttpConfiguration^)

Initializes a new ODataConventionModelBuilder.

System_CAPS_pubmethodODataConventionModelBuilder(HttpConfiguration^, Boolean)

Initializes a new instance of the ODataConventionModelBuilder class.

NameDescription
System_CAPS_pubpropertyContainerName

Gets or sets the name of the container that will hold all the entity sets, actions and functions.(Inherited from ODataModelBuilder.)

System_CAPS_pubpropertyDataServiceVersion

Gets or sets the data service version of the model. The default value is 3.0.(Inherited from ODataModelBuilder.)

System_CAPS_pubpropertyEntitySets

Gets the collection of EDM entity sets in the model to be built.(Inherited from ODataModelBuilder.)

System_CAPS_pubpropertyMaxDataServiceVersion

Gets or sets the maximum data service version of the model. The default value is 3.0.(Inherited from ODataModelBuilder.)

System_CAPS_pubpropertyNamespace

Gets or sets the namespace that will be used for the resulting model.(Inherited from ODataModelBuilder.)

System_CAPS_pubpropertyOnModelCreating

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.

System_CAPS_pubpropertyProcedures

Gets the collection of procedures (such as actions, functions and service operations) in the model to be built(Inherited from ODataModelBuilder.)

System_CAPS_pubpropertyStructuralTypes

Gets the collection of EDM structural types in the model to be built.(Inherited from ODataModelBuilder.)

NameDescription
System_CAPS_pubmethodAction(String^)

Adds a non-bindable action to the builder.(Inherited from ODataModelBuilder.)

System_CAPS_pubmethodAddComplexType(Type^)
System_CAPS_pubmethodAddEntity(Type^)
System_CAPS_pubmethodAddEntitySet(String^, EntityTypeConfiguration^)
System_CAPS_pubmethodAddProcedure(ProcedureConfiguration^)

Adds a procedure to the model.(Inherited from ODataModelBuilder.)

System_CAPS_pubmethodComplexType<TComplexType>()

Registers a type as a complex type in the model and returns an object that can be used to configure the complex type. This method can be called multiple times for the same type to perform multiple lines of configuration.(Inherited from ODataModelBuilder.)

System_CAPS_pubmethodEntity<TEntityType>()

Registers an entity type as part of the model and returns an object that can be used to configure the entity. This method can be called multiple times for the same entity to perform multiple lines of configuration.(Inherited from ODataModelBuilder.)

System_CAPS_pubmethodEntitySet<TEntityType>(String^)

Registers an entity set as a part of the model and returns an object that can be used to configure the entity set. This method can be called multiple times for the same type to perform multiple lines of configuration.(Inherited from ODataModelBuilder.)

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetEdmModel()
System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetTypeConfigurationOrNull(Type^)

Attempts to find either a pre-configured structural type or a primitive type that matches the type. If no matches are found null is returned.(Inherited from ODataModelBuilder.)

System_CAPS_pubmethodIgnore(array<Type^>^)

Excludes a type or types from the model. This is used to remove types from the model that were added by convention during initial model discovery.

System_CAPS_pubmethodIgnore<T>()

Excludes a type from the model. This is used to remove types from the model that were added by convention during initial model discovery.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodRemoveEntitySet(String^)

Removes the entity set from the model.(Inherited from ODataModelBuilder.)

System_CAPS_pubmethodRemoveProcedure(ProcedureConfiguration^)

Removes the procedure from the model.(Inherited from ODataModelBuilder.)

System_CAPS_pubmethodRemoveProcedure(String^)

Removes the procedure from the model.(Inherited from ODataModelBuilder.)

System_CAPS_pubmethodRemoveStructuralType(Type^)

Removes the type from the model.(Inherited from ODataModelBuilder.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: