ODataModelBuilder.AddComplexType Method (Type)

 

Registers a 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.

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

Syntax

public virtual ComplexTypeConfiguration AddComplexType(
    Type type
)
public:
virtual ComplexTypeConfiguration^ AddComplexType(
    Type^ type
)
abstract AddComplexType : 
        type:Type -> ComplexTypeConfiguration
override AddComplexType : 
        type:Type -> ComplexTypeConfiguration
Public Overridable Function AddComplexType (
    type As Type
) As ComplexTypeConfiguration

Parameters

  • type
    Type: System.Type

    The type to be registered or configured.

Return Value

Type: System.Web.Http.OData.Builder.ComplexTypeConfiguration

The configuration object for the specified complex type.

See Also

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

Return to top