Share via


StructuralTypeConfiguration<TStructuralType> Class

Represents an IEdmStructuredType that can be built using ODataModelBuilder .

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public MustInherit Class StructuralTypeConfiguration(Of TStructuralType As Class)
'Usage
Dim instance As StructuralTypeConfiguration(Of TStructuralType)
public abstract class StructuralTypeConfiguration<TStructuralType>
where TStructuralType : class
generic<typename TStructuralType>
where TStructuralType : ref class 
public ref class StructuralTypeConfiguration abstract
[<AbstractClassAttribute>]
type StructuralTypeConfiguration<'TStructuralType when 'TStructuralType : not struct> =  class end
JScript does not support generic types and methods.

Type Parameters

  • TStructuralType

The StructuralTypeConfiguration<TStructuralType> type exposes the following members.

Constructors

  Name Description
Protected method StructuralTypeConfiguration<TStructuralType> Initializes a new instance of the StructuralTypeConfiguration<TStructuralType> class.

Top

Properties

  Name Description
Public property Properties Gets the collection of EDM structural properties that belong to this type.

Top

Methods

  Name Description
Public method CollectionProperty<TElementType> Adds a collection property to the EDM type.
Public method ComplexProperty<TComplexType> Adds a complex property to the EDM type.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method Ignore<TProperty> Excludes a property from the type.
Protected method MemberwiseClone (Inherited from Object.)
Public method Property(Expression<Func<TStructuralType, array<Byte[]>>) Adds a binary property to the EDM type.
Public method Property(Expression<Func<TStructuralType, Stream>>) Adds a stream property to the EDM type.
Public method Property(Expression<Func<TStructuralType, String>>) Adds a string property to the EDM type.
Public method Property<T>(Expression<Func<TStructuralType, Nullable<T>>>) Adds an optional primitive property to the EDM type.
Public method Property<T>(Expression<Func<TStructuralType, T>>) Adds a required primitive property to the EDM type.
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