Share via


EntityTypeConfiguration Class

Represents an IEdmEntityType that can be built using ODataModelBuilder.

Inheritance Hierarchy

System.Object
  System.Web.Http.OData.Builder.StructuralTypeConfiguration
    System.Web.Http.OData.Builder.EntityTypeConfiguration

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

Syntax

'Declaration
Public Class EntityTypeConfiguration _
    Inherits StructuralTypeConfiguration
'Usage
Dim instance As EntityTypeConfiguration
public class EntityTypeConfiguration : StructuralTypeConfiguration
public ref class EntityTypeConfiguration : public StructuralTypeConfiguration
type EntityTypeConfiguration =  
    class 
        inherit StructuralTypeConfiguration 
    end
public class EntityTypeConfiguration extends StructuralTypeConfiguration

The EntityTypeConfiguration type exposes the following members.

Constructors

  Name Description
Public method EntityTypeConfiguration() Initializes a new instance of the EntityTypeConfiguration class.
Public method EntityTypeConfiguration(ODataModelBuilder, Type) Initializes a new instance of the EntityTypeConfiguration class.

Top

Properties

  Name Description
Public property BaseType Gets or sets the base type of this entity type.
Public property BaseTypeConfigured Gets a value that represents whether the base type is explicitly configured or inferred.
Public property ClrType Gets the backing CLR Type. (Inherited from StructuralTypeConfiguration.)
Protected property ExplicitProperties Gets the collection of explicitly added properties. (Inherited from StructuralTypeConfiguration.)
Public property FullName Gets the full name of this EDM type. (Inherited from StructuralTypeConfiguration.)
Public property IgnoredProperties Gets the properties from the backing CLR type that are to be ignored on this EDM type. (Inherited from StructuralTypeConfiguration.)
Public property IsAbstract Gets or sets a value indicating whether this type is abstract.
Public property Keys Gets the collection of keys for this entity type.
Public property Kind Gets the EdmTypeKind of this IEdmTypeConfiguration. (Overrides StructuralTypeConfiguration.Kind.)
Public property ModelBuilder The ODataModelBuilder. (Inherited from StructuralTypeConfiguration.)
Public property Name Gets the name of this EDM type. (Inherited from StructuralTypeConfiguration.)
Public property Namespace Gets the namespace of this EDM type. (Inherited from StructuralTypeConfiguration.)
Public property NavigationProperties Gets the collection of NavigationPropertyConfiguration of this entity type.
Public property Properties Gets the declared properties on this EDM type. (Inherited from StructuralTypeConfiguration.)
Protected property RemovedProperties Gets the collection of explicitly removed properties. (Inherited from StructuralTypeConfiguration.)

Top

Methods

  Name Description
Public method Abstract Marks this entity type as abstract.
Public method AddCollectionProperty Adds a new EDM collection property to this entity type. (Overrides StructuralTypeConfiguration.AddCollectionProperty(PropertyInfo).)
Public method AddComplexProperty Adds a new EDM complex property to this entity type. (Overrides StructuralTypeConfiguration.AddComplexProperty(PropertyInfo).)
Public method AddNavigationProperty Adds a new EDM navigation property to this entity type.
Public method AddProperty Adds a new EDM primitive property to this entity type. (Overrides StructuralTypeConfiguration.AddProperty(PropertyInfo).)
Public method DerivesFrom 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 Configures the key property(s) for this entity type.
Protected method MemberwiseClone (Inherited from Object.)
Public method RemoveKey Removes the property from the entity keys collection.
Public method RemoveProperty Removes the property from the entity. (Overrides StructuralTypeConfiguration.RemoveProperty(PropertyInfo).)
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