Share via


ComplexTypeConfiguration Class

Allows configuration to be performed for a complex type in a model. A ComplexTypeConfiguration can be obtained by using the method ComplexType<TComplexType>().

Inheritance Hierarchy

System.Object
  System.Web.Http.OData.Builder.StructuralTypeConfiguration
    System.Web.Http.OData.Builder.ComplexTypeConfiguration

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

Syntax

'Declaration
Public Class ComplexTypeConfiguration _
    Inherits StructuralTypeConfiguration
'Usage
Dim instance As ComplexTypeConfiguration
public class ComplexTypeConfiguration : StructuralTypeConfiguration
public ref class ComplexTypeConfiguration : public StructuralTypeConfiguration
type ComplexTypeConfiguration =  
    class 
        inherit StructuralTypeConfiguration 
    end
public class ComplexTypeConfiguration extends StructuralTypeConfiguration

The ComplexTypeConfiguration type exposes the following members.

Constructors

  Name Description
Public method ComplexTypeConfiguration() Initializes a new instance of the ComplexTypeConfiguration class.
Public method ComplexTypeConfiguration(ODataModelBuilder, Type) Initializes a new instance of the ComplexTypeConfiguration class.

Top

Properties

  Name Description
Public property ClrType Gets the backing CLR Type. (Inherited from StructuralTypeConfiguration.)
Protected property ExplicitProperties Gets the collection of explicitly added properties. (Inherited from StructuralTypeConfiguration.)
Public property FullName Gets the full name of this EDM type. (Inherited from StructuralTypeConfiguration.)
Public property IgnoredProperties Gets the properties from the backing CLR type that are to be ignored on this EDM type. (Inherited from StructuralTypeConfiguration.)
Public property Kind Gets or sets the kind of EDM metatypes for the complex type configuration. (Overrides StructuralTypeConfiguration.Kind.)
Public property ModelBuilder The ODataModelBuilder. (Inherited from StructuralTypeConfiguration.)
Public property Name Gets the name of this EDM type. (Inherited from StructuralTypeConfiguration.)
Public property Namespace Gets the namespace of this EDM type. (Inherited from StructuralTypeConfiguration.)
Public property Properties Gets the declared properties on this EDM type. (Inherited from StructuralTypeConfiguration.)
Protected property RemovedProperties Gets the collection of explicitly removed properties. (Inherited from StructuralTypeConfiguration.)

Top

Methods

  Name Description
Public method AddCollectionProperty Adds a collection property to this edm type. (Inherited from StructuralTypeConfiguration.)
Public method AddComplexProperty Adds a complex property to this edm type. (Inherited from StructuralTypeConfiguration.)
Public method AddProperty Adds a primitive property to this edm type. (Inherited from StructuralTypeConfiguration.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method RemoveProperty Removes the given property. (Inherited from StructuralTypeConfiguration.)
Public method ToString (Inherited from Object.)

Top

Thread Safety

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

See Also

Reference

System.Web.Http.OData.Builder Namespace