Share via


EntityTypeConfiguration<TEntityType> Class

Represents an IEdmEntityType that can be built using ODataModelBuilder .

Inheritance Hierarchy

System.Object
  System.Web.Http.OData.Builder.StructuralTypeConfiguration<TEntityType>
    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 Class EntityTypeConfiguration(Of TEntityType As Class) _
    Inherits StructuralTypeConfiguration(Of TEntityType)
'Usage
Dim instance As EntityTypeConfiguration(Of TEntityType)
public class EntityTypeConfiguration<TEntityType> : StructuralTypeConfiguration<TEntityType>
where TEntityType : class
generic<typename TEntityType>
where TEntityType : ref class 
public ref class EntityTypeConfiguration : public StructuralTypeConfiguration<TEntityType>
type EntityTypeConfiguration<'TEntityType when 'TEntityType : not struct> =  
    class 
        inherit StructuralTypeConfiguration<'TEntityType>
    end
JScript does not support generic types and methods.

Type Parameters

The EntityTypeConfiguration<TEntityType> type exposes the following members.

Properties

  Name Description
Public property BaseType Gets the base type of this entity type.
Public property Collection Used to access a Collection of Entities throw which you can configure actions that are bindable to EntityCollections.
Public property NavigationProperties Gets the collection of NavigationPropertyConfiguration of this entity type.
Public property Properties Gets the collection of EDM structural properties that belong to this type. (Inherited from StructuralTypeConfiguration<TStructuralType>.)

Top

Methods

  Name Description
Public method Abstract Marks this entity type as abstract.
Public method Action Create an Action that binds to this EntityType.
Public method CollectionProperty<TElementType> Adds a collection property to the EDM type. (Inherited from StructuralTypeConfiguration<TStructuralType>.)
Public method ComplexProperty<TComplexType> Adds a complex property to the EDM type. (Inherited from StructuralTypeConfiguration<TStructuralType>.)
Public method DerivesFrom<TBaseType> Sets the base type of this entity type.
Public method DerivesFromNothing Sets the base type of this entity type to null meaning that this entity type does not derive from anything.
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 HasKey<TKey> Configures the key property(s) for this entity type.
Public method HasMany<TTargetEntity> Configures a many relationship from this entity type.
Public method HasOptional<TTargetEntity> Configures an optional relationship from this entity type.
Public method HasRequired<TTargetEntity> Configures a required relationship from this entity type.
Public method Ignore<TProperty> Excludes a property from the type. (Inherited from StructuralTypeConfiguration<TStructuralType>.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Property(Expression<Func<TStructuralType, String>>) Adds a string property to the EDM type. (Inherited from StructuralTypeConfiguration<TStructuralType>.)
Public method ToString (Inherited from Object.)
Public method TransientAction Create an Action that sometimes binds to this EntityType

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