Share via


ComplexTypeConfiguration<TComplexType> Class

 

Represents an IEdmComplexType that can be built using ODataModelBuilder.

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

Inheritance Hierarchy

System.Object
  System.Web.OData.Builder.StructuralTypeConfiguration<TStructuralType>
    System.Web.OData.Builder.ComplexTypeConfiguration<TComplexType>

Syntax

public class ComplexTypeConfiguration<TComplexType> : StructuralTypeConfiguration<TComplexType>
where TComplexType : class
generic<typename TComplexType>
where TComplexType : ref class
public ref class ComplexTypeConfiguration : StructuralTypeConfiguration<TComplexType>
type ComplexTypeConfiguration<'TComplexType when 'TComplexType : not struct> = 
    class
        inherit StructuralTypeConfiguration<'TComplexType>
    end
Public Class ComplexTypeConfiguration(Of TComplexType As Class)
    Inherits StructuralTypeConfiguration(Of TComplexType)

Properties

Name Description
System_CAPS_pubproperty BaseType

Gets the base type of this complex type.

System_CAPS_pubproperty FullName

Gets the full name of this EDM type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

System_CAPS_pubproperty IsOpen

Gets an indicator whether this EDM type is an open type or not. Returns true if this is an open type; false otherwise.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

System_CAPS_pubproperty Name

Gets and sets the name of this EDM type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

System_CAPS_pubproperty Namespace

Gets and sets the namespace of this EDM type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

System_CAPS_pubproperty Properties

Gets the collection of EDM structural properties that belong to this type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

Methods

Name Description
System_CAPS_pubmethod Abstract()

Marks this complex type as abstract.

System_CAPS_pubmethod CollectionProperty<TElementType>(Expression<Func<TStructuralType, IEnumerable<TElementType>>>)

Adds a collection property to the EDM type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

System_CAPS_pubmethod ComplexProperty<TComplexType>(Expression<Func<TStructuralType, TComplexType>>)

Adds a complex property to the EDM type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

System_CAPS_pubmethod DerivesFrom<TBaseType>()

Sets the base type of this complex type.

System_CAPS_pubmethod DerivesFromNothing()

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

System_CAPS_pubmethod EnumProperty<T>(Expression<Func<TStructuralType, Nullable<T>>>)

Adds an optional enum property to the EDM type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

System_CAPS_pubmethod EnumProperty<T>(Expression<Func<TStructuralType, Nullable<T>>>)

Adds an optional enum property to the EDM type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod HasDynamicProperties(Expression<Func<TStructuralType, IDictionary<String, Object>>>)

Adds a dynamic property dictionary property.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

System_CAPS_pubmethod Ignore<TProperty>(Expression<Func<TStructuralType, TProperty>>)

Excludes a property from the type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod Property(Expression<Func<TStructuralType, String>>)

Adds a string property to the EDM type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

System_CAPS_pubmethod Property(Expression<Func<TStructuralType, String>>)

Adds a string property to the EDM type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

System_CAPS_pubmethod Property(Expression<Func<TStructuralType, String>>)

Adds a string property to the EDM type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

System_CAPS_pubmethod Property(Expression<Func<TStructuralType, String>>)

Adds a string property to the EDM type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

System_CAPS_pubmethod Property(Expression<Func<TStructuralType, String>>)

Adds a string property to the EDM type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

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

System.Web.OData.Builder Namespace

Return to top