Share via


ComplexTypeConfiguration Class

Definition

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

public class ComplexTypeConfiguration : Microsoft.AspNet.OData.Builder.StructuralTypeConfiguration
type ComplexTypeConfiguration = class
    inherit StructuralTypeConfiguration
Public Class ComplexTypeConfiguration
Inherits StructuralTypeConfiguration
Inheritance
ComplexTypeConfiguration

Constructors

ComplexTypeConfiguration()

Initializes a new instance of the ComplexTypeConfiguration class.

ComplexTypeConfiguration(ODataModelBuilder, Type)

Initializes a new instance of the ComplexTypeConfiguration class.

Properties

AddedExplicitly

Gets or sets a value that is true if the type's name or namespace was set by the user; false if it was inferred through conventions.

(Inherited from StructuralTypeConfiguration)
BaseType

Gets or sets the base type of this complex type.

BaseTypeConfigured

Gets a value that represents whether the base type is explicitly configured or inferred.

(Inherited from StructuralTypeConfiguration)
BaseTypeInternal

Gets the base type of this structural type.

(Inherited from StructuralTypeConfiguration)
ClrType

Gets the backing CLR Type.

(Inherited from StructuralTypeConfiguration)
DynamicPropertyDictionary

Gets the CLR property info of the dynamic property dictionary on this structural type.

(Inherited from StructuralTypeConfiguration)
ExplicitProperties

Gets the collection of explicitly added properties.

(Inherited from StructuralTypeConfiguration)
FullName

Gets the full name of this edm type.

(Inherited from StructuralTypeConfiguration)
IgnoredProperties

Gets the properties from the backing CLR type that are to be ignored on this edm type.

(Inherited from StructuralTypeConfiguration)
InstanceAnnotationsContainer

Gets the CLR property info of the instance annotations dictionary on this structural type.

(Inherited from StructuralTypeConfiguration)
IsAbstract

Gets or sets a value indicating whether this type is abstract.

(Inherited from StructuralTypeConfiguration)
IsOpen

Gets a value indicating whether this type is open or not.

(Inherited from StructuralTypeConfiguration)
Kind

Gets the EdmTypeKind of this edm type.

ModelBuilder

The ODataModelBuilder.

(Inherited from StructuralTypeConfiguration)
Name

Gets or sets the name of this EDM type.

(Inherited from StructuralTypeConfiguration)
Namespace

Gets or sets the namespace of this EDM type.

(Inherited from StructuralTypeConfiguration)
NavigationProperties

Gets the collection of NavigationPropertyConfiguration of this entity type.

(Inherited from StructuralTypeConfiguration)
Properties

Gets the declared properties on this edm type.

(Inherited from StructuralTypeConfiguration)
QueryConfiguration

Gets or sets the QueryConfiguration.

(Inherited from StructuralTypeConfiguration)
RemovedProperties

Gets the collection of explicitly removed properties.

(Inherited from StructuralTypeConfiguration)
SupportsInstanceAnnotations

Gets a value indicating whether this type has instance annotations or not.

(Inherited from StructuralTypeConfiguration)

Methods

Abstract()

Marks this complex type as abstract.

AddCollectionProperty(PropertyInfo)

Adds a collection property to this edm type.

(Inherited from StructuralTypeConfiguration)
AddComplexProperty(PropertyInfo)

Adds a complex property to this edm type.

(Inherited from StructuralTypeConfiguration)
AddContainedNavigationProperty(PropertyInfo, EdmMultiplicity)

Adds a contained EDM navigation property to this entity type.

(Inherited from StructuralTypeConfiguration)
AddDynamicPropertyDictionary(PropertyInfo)

Adds the property info of the dynamic properties to this structural type.

(Inherited from StructuralTypeConfiguration)
AddEnumProperty(PropertyInfo)

Adds an enum property to this edm type.

(Inherited from StructuralTypeConfiguration)
AddInstanceAnnotationContainer(PropertyInfo)

Adds the property info of the instanceannotation to this structural type.

(Inherited from StructuralTypeConfiguration)
AddNavigationProperty(PropertyInfo, EdmMultiplicity)

Adds a non-contained EDM navigation property to this entity type.

(Inherited from StructuralTypeConfiguration)
AddProperty(PropertyInfo)

Adds a primitive property to this edm type.

(Inherited from StructuralTypeConfiguration)
DerivesFrom(ComplexTypeConfiguration)

Sets the base type of this complex type.

DerivesFromNothing()

Sets the base type of this complex type to null meaning that this complex type does not derive from anything.

RemoveProperty(PropertyInfo)

Removes the given property.

(Inherited from StructuralTypeConfiguration)

Applies to