Share via


EntityTypeConfiguration<TEntityType> Class

 

Represents an IEdmEntityType 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.EntityTypeConfiguration<TEntityType>

Syntax

public class EntityTypeConfiguration<TEntityType> : StructuralTypeConfiguration<TEntityType>
where TEntityType : class
generic<typename TEntityType>
where TEntityType : ref class
public ref class EntityTypeConfiguration : StructuralTypeConfiguration<TEntityType>
type EntityTypeConfiguration<'TEntityType when 'TEntityType : not struct> = 
    class
        inherit StructuralTypeConfiguration<'TEntityType>
    end
Public Class EntityTypeConfiguration(Of TEntityType As Class)
    Inherits StructuralTypeConfiguration(Of TEntityType)

Type Parameters

Properties

Name Description
System_CAPS_pubproperty BaseType

Gets the base type of this entity type.

System_CAPS_pubproperty Collection

Used to access a Collection of Entities through which you can configure actions and functions that are bindable to EntityCollections.

System_CAPS_pubproperty FullName

Gets the full name of this EDM type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

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.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

System_CAPS_pubproperty Name

Gets and sets the name of this EDM type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

System_CAPS_pubproperty Namespace

Gets and sets the namespace of this EDM type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

System_CAPS_pubproperty NavigationProperties

Gets the collection of NavigationPropertyConfiguration of this entity type.

System_CAPS_pubproperty Properties

Gets the collection of EDM structural properties that belong to this type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

Methods

Name Description
System_CAPS_pubmethod Abstract()

Marks this entity type as abstract.

System_CAPS_pubmethod Action(String)

Create an Action that binds to this EntityType.

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

Adds a collection property to the EDM type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

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

Adds a complex property to the EDM type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

System_CAPS_pubmethod ContainsMany<TTargetEntity>(Expression<Func<TEntityType, IEnumerable<TTargetEntity>>>)

Configures a relationship from this entity type to a contained collection navigation property.

System_CAPS_pubmethod ContainsOptional<TTargetEntity>(Expression<Func<TEntityType, TTargetEntity>>)

Configures an optional relationship from this entity type to a single contained navigation property.

System_CAPS_pubmethod ContainsRequired<TTargetEntity>(Expression<Func<TEntityType, TTargetEntity>>)

Configures a required relationship from this entity type to a single contained navigation property.

System_CAPS_pubmethod DerivesFrom<TBaseType>()

Sets the base type of this entity type.

System_CAPS_pubmethod DerivesFromNothing()

Sets the base type of this entity type to null meaning that this entity type does not derive from anything.

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

Adds an optional enum property to the EDM type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

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

Adds an optional enum property to the EDM type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod Function(String)

Create a Function that binds to this EntityType.

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.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

System_CAPS_pubmethod HasKey<TKey>(Expression<Func<TEntityType, TKey>>)

Configures the key property(s) for this entity type.

System_CAPS_pubmethod HasMany<TTargetEntity>(Expression<Func<TEntityType, IEnumerable<TTargetEntity>>>)

Configures a many relationship from this entity type.

System_CAPS_pubmethod HasOptional<TTargetEntity>(Expression<Func<TEntityType, TTargetEntity>>)

Configures an optional relationship from this entity type.

System_CAPS_pubmethod HasOptional<TTargetEntity>(Expression<Func<TEntityType, TTargetEntity>>, Expression<Func<TEntityType, TTargetEntity, Boolean>>)

Configures an optional relationship with referential constraint from this entity type.

System_CAPS_pubmethod HasRequired<TTargetEntity>(Expression<Func<TEntityType, TTargetEntity>>)

Configures a required relationship from this entity type.

System_CAPS_pubmethod HasRequired<TTargetEntity>(Expression<Func<TEntityType, TTargetEntity>>, Expression<Func<TEntityType, TTargetEntity, Boolean>>)

Configures a required relationship with referential constraint from this entity type.

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

Excludes a property from the type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

System_CAPS_pubmethod MediaType()

Marks this entity type as media type.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

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

Adds a string property to the EDM type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

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

Adds a string property to the EDM type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

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

Adds a string property to the EDM type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

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

Adds a string property to the EDM type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

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

Adds a string property to the EDM type.(Inherited from StructuralTypeConfiguration<TStructuralType>.)

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