Share via


StructuralTypeConfiguration<TStructuralType> Class

 

Represents an IEdmStructuredType 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>
    System.Web.OData.Builder.EntityTypeConfiguration<TEntityType>

Syntax

public abstract class StructuralTypeConfiguration<TStructuralType>
where TStructuralType : class
generic<typename TStructuralType>
where TStructuralType : ref class
public ref class StructuralTypeConfiguration abstract 
[<AbstractClass>]
type StructuralTypeConfiguration<'TStructuralType when 'TStructuralType : not struct> = class end
Public MustInherit Class StructuralTypeConfiguration(Of TStructuralType As Class)

Constructors

Name Description
System_CAPS_protmethod StructuralTypeConfiguration<TStructuralType>(StructuralTypeConfiguration)

Initializes a new instance of the StructuralTypeConfiguration<TStructuralType> class.

Properties

Name Description
System_CAPS_pubproperty FullName

Gets the full name of this EDM type.

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.

System_CAPS_pubproperty Name

Gets and sets the name of this EDM type.

System_CAPS_pubproperty Namespace

Gets and sets the namespace of this EDM type.

System_CAPS_pubproperty Properties

Gets the collection of EDM structural properties that belong to this type.

Methods

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

Adds a collection property to the EDM type.

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

Adds a complex property to the EDM type.

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

Adds a required enum property to the EDM type.

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

Adds an optional enum property to the EDM type.

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.

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

Excludes a property from the type.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod Property(Expression<Func<TStructuralType, Byte[]>>)

Adds a binary property to the EDM type.

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

Adds a stream property the EDM type.

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

Adds a string property to the EDM type.

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

Adds a required primitive property to the EDM type.

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

Adds an optional primitive property to the EDM type.

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