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
- TEntityType
The backing CLR type for this IEdmEntityType .
The EntityTypeConfiguration<TEntityType> type exposes the following members.
Properties
Name | Description | |
---|---|---|
BaseType | Gets the base type of this entity type. | |
Collection | Used to access a Collection of Entities throw which you can configure actions that are bindable to EntityCollections. | |
NavigationProperties | Gets the collection of NavigationPropertyConfiguration of this entity type. | |
Properties | Gets the collection of EDM structural properties that belong to this type. (Inherited from StructuralTypeConfiguration<TStructuralType>.) |
Top
Methods
Name | Description | |
---|---|---|
Abstract | Marks this entity type as abstract. | |
Action | Create an Action that binds to this EntityType. | |
CollectionProperty<TElementType> | Adds a collection property to the EDM type. (Inherited from StructuralTypeConfiguration<TStructuralType>.) | |
ComplexProperty<TComplexType> | Adds a complex property to the EDM type. (Inherited from StructuralTypeConfiguration<TStructuralType>.) | |
DerivesFrom<TBaseType> | Sets the base type of this entity type. | |
DerivesFromNothing | Sets the base type of this entity type to null meaning that this entity type does not derive from anything. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
HasKey<TKey> | Configures the key property(s) for this entity type. | |
HasMany<TTargetEntity> | Configures a many relationship from this entity type. | |
HasOptional<TTargetEntity> | Configures an optional relationship from this entity type. | |
HasRequired<TTargetEntity> | Configures a required relationship from this entity type. | |
Ignore<TProperty> | Excludes a property from the type. (Inherited from StructuralTypeConfiguration<TStructuralType>.) | |
MemberwiseClone | (Inherited from Object.) | |
Property(Expression<Func<TStructuralType, String>>) | Adds a string property to the EDM type. (Inherited from StructuralTypeConfiguration<TStructuralType>.) | |
ToString | (Inherited from Object.) | |
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.