Share via


EntitySetConfiguration<TEntityType> Class

Represents an IEdmEntitySet that can be built using ODataModelBuilder.

Inheritance Hierarchy

System.Object
  System.Web.Http.OData.Builder.EntitySetConfiguration<TEntityType>

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

Syntax

'Declaration
Public Class EntitySetConfiguration(Of TEntityType As Class)
'Usage
Dim instance As EntitySetConfiguration(Of TEntityType)
public class EntitySetConfiguration<TEntityType>
where TEntityType : class
generic<typename TEntityType>
where TEntityType : ref class 
public ref class EntitySetConfiguration
type EntitySetConfiguration<'TEntityType when 'TEntityType : not struct> =  class end
JScript does not support generic types and methods.

Type Parameters

  • TEntityType
    The element type of the entity set.

The EntitySetConfiguration<TEntityType> type exposes the following members.

Properties

  Name Description
Public property EntityType Gets the entity type contained in this entity set.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method FindBinding(String) Finds the NavigationPropertyBindingConfiguration for the navigation property with the given name.
Public method FindBinding(NavigationPropertyConfiguration) Finds the NavigationPropertyBindingConfiguration for the navigation property or creates it if it does not exist.
Public method FindBinding(NavigationPropertyConfiguration, Boolean) Finds the NavigationPropertyBindingConfiguration for the given navigation property.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method HasEditLink(Func<EntityInstanceContext<TEntityType>, String>, Boolean) Configures the edit link for the entities from this entity set.
Public method HasEditLink(Func<EntityInstanceContext<TEntityType>, Uri>, Boolean) Configures the edit link for the entities from this entity set.
Public method HasFeedSelfLink(Func<FeedContext, String>) Adds a self link to the feed.
Public method HasFeedSelfLink(Func<FeedContext, Uri>) Adds a self link to the feed.
Public method HasIdLink Configures the ID link for the entities from this entity set.
Public method HasManyBinding<TTargetType>(Expression<Func<TEntityType, IEnumerable<TTargetType>>>, String) Configures a many relationship from this entity type and binds the corresponding navigation property to the given entity set.
Public method HasManyBinding<TTargetType>(Expression<Func<TEntityType, IEnumerable<TTargetType>>>, EntitySetConfiguration<TTargetType>) Configures a many relationship from this entity type and binds the corresponding navigation property to the given entity set.
Public method HasManyBinding<TTargetType, TDerivedEntityType>(Expression<Func<TDerivedEntityType, IEnumerable<TTargetType>>>, String) Configures a many relationship from this entity type and binds the corresponding navigation property to the given entity set.
Public method HasManyBinding<TTargetType, TDerivedEntityType>(Expression<Func<TDerivedEntityType, IEnumerable<TTargetType>>>, EntitySetConfiguration<TTargetType>) Configures a many relationship from this entity type and binds the corresponding navigation property to the given entity set.
Public method HasNavigationPropertiesLink Configures the navigation link for the given navigation properties for entities from this entity set.
Public method HasNavigationPropertyLink Configures the navigation link for the given navigation property for entities from this entity set.
Public method HasOptionalBinding<TTargetType>(Expression<Func<TEntityType, TTargetType>>, String) Configures an optional relationship from this entity type and binds the corresponding navigation property to the given entity set.
Public method HasOptionalBinding<TTargetType>(Expression<Func<TEntityType, TTargetType>>, EntitySetConfiguration<TTargetType>) Configures an optional relationship from this entity type and binds the corresponding navigation property to the given entity set.
Public method HasOptionalBinding<TTargetType, TDerivedEntityType>(Expression<Func<TDerivedEntityType, TTargetType>>, String) Configures an optional relationship from this entity type and binds the corresponding navigation property to the given entity set.
Public method HasOptionalBinding<TTargetType, TDerivedEntityType>(Expression<Func<TDerivedEntityType, TTargetType>>, EntitySetConfiguration<TTargetType>) Configures an optional relationship from this entity type and binds the corresponding navigation property to the given entity set.
Public method HasReadLink(Func<EntityInstanceContext<TEntityType>, String>, Boolean) Configures the read link for the entities from this entity set.
Public method HasReadLink(Func<EntityInstanceContext<TEntityType>, Uri>, Boolean) Configures the read link for the entities from this entity set.
Public method HasRequiredBinding<TTargetType>(Expression<Func<TEntityType, TTargetType>>, String) Configures a required relationship from this entity type and binds the corresponding navigation property to the given entity set.
Public method HasRequiredBinding<TTargetType>(Expression<Func<TEntityType, TTargetType>>, EntitySetConfiguration<TTargetType>) Configures a required relationship from this entity type and binds the corresponding navigation property to the given entity set.
Public method HasRequiredBinding<TTargetType, TDerivedEntityType>(Expression<Func<TDerivedEntityType, TTargetType>>, String) Configures a required relationship from this entity type and binds the corresponding navigation property to the given entity set.
Public method HasRequiredBinding<TTargetType, TDerivedEntityType>(Expression<Func<TDerivedEntityType, TTargetType>>, EntitySetConfiguration<TTargetType>) Configures a required relationship from this entity type and binds the corresponding navigation property to the given entity set.
Protected method MemberwiseClone (Inherited from Object.)
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