ODataModelBuilder Class

 

Represents a model builder that is used to map CLR classes to an EDM model.

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

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

public ref class ODataModelBuilder 

NameDescription
System_CAPS_pubmethodODataModelBuilder()

Initializes a new instance of the ODataModelBuilder class.

NameDescription
System_CAPS_pubpropertyContainerName

Gets or sets the name of the container that will hold all the navigation sources, actions and functions

System_CAPS_pubpropertyDataServiceVersion

Gets or sets the data service version of the model. The default value is 4.0.

System_CAPS_pubpropertyEntitySets

Gets the collection of EDM entity sets in the model to be built.

System_CAPS_pubpropertyEnumTypes

Gets the collection of EDM types in the model to be built.

System_CAPS_pubpropertyMaxDataServiceVersion

Gets or sets the maximum data service version of the model. The default value is 4.0.

System_CAPS_pubpropertyNamespace

Gets or sets the namespace that will be used for the resulting model

System_CAPS_pubpropertyNavigationSources

Gets the collection of EDM navigation sources (entity sets and singletons) in the model to be built.

System_CAPS_pubpropertyProcedures

Gets the collection of Procedures (i.e. Actions, Functions and ServiceOperations) in the model to be built.

System_CAPS_pubpropertySingletons

Gets the collection of EDM singletons in the model to be built.

System_CAPS_pubpropertyStructuralTypes

Gets the collection of EDM types in the model to be built.

NameDescription
System_CAPS_pubmethodAction(String^)

Adds an unbound action to the builder.

System_CAPS_pubmethodAddComplexType(Type^)

Registers an complex 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.

System_CAPS_pubmethodAddEntitySet(String^, EntityTypeConfiguration^)

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.

System_CAPS_pubmethodAddEntityType(Type^)

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.

System_CAPS_pubmethodAddEnumType(Type^)

Registers an enum type as part of the model and returns an object that can be used to configure the enum type.

System_CAPS_pubmethodAddProcedure(ProcedureConfiguration^)

Adds a procedure to the model.

System_CAPS_pubmethodAddSingleton(String^, EntityTypeConfiguration^)

Registers a singleton as a part of the model and returns an object that can be used to configure the singleton. This method can be called multiple times for the same type to perform multiple lines of configuration.

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.

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.

System_CAPS_pubmethodEntityType<TEntityType>()

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

System_CAPS_pubmethodEnumType<TEnumType>()

Registers an enum type as part of the model and returns an object that can be used to configure the enum.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodFunction(String^)

Adds an unbound function to the builder.

System_CAPS_pubmethodGetEdmModel()

Creates a IEdmModel based on the configuration performed using this builder.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetTypeConfigurationOrNull(Type^)

Attempts to find a pre-configured structural type or a primitive type or an enum type that matches the T. If no matches are found NULL is returned.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodRemoveEntitySet(String^)

Removes the entity set from the model.

System_CAPS_pubmethodRemoveEnumType(Type^)

Removes the type from the model.

System_CAPS_pubmethodRemoveProcedure(ProcedureConfiguration^)

Remove the procedure from the model

System_CAPS_pubmethodRemoveProcedure(String^)

Remove the procedure from the model

If there is more than one procedure with the name specified this method will not work. You need to use the other RemoveProcedure(..) overload instead.

System_CAPS_pubmethodRemoveSingleton(String^)

Removes the singleton from the model.

System_CAPS_pubmethodRemoveStructuralType(Type^)

Removes the type from the model.

System_CAPS_pubmethodSingleton<TEntityType>(String^)

Registers a singleton as a part of the model and returns an object that can be used to configure the singleton. This method can be called multiple times for the same type to perform multiple lines of configuration.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodValidateModel(IEdmModel^)

Validates the IEdmModel that is being created.

Gets the collection of EDM types in the model to be built.

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: