Share via


EntityCollectionConfiguration<TEntityType> Class

EntityCollectionConfiguration represents a Collection of Entities. This class can be used to configure things that get bound to entities, like Actions bound to a collection.

Inheritance Hierarchy

System.Object
  System.Web.Http.OData.Builder.CollectionTypeConfiguration
    System.Web.Http.OData.Builder.EntityCollectionConfiguration<TEntityType>

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

Syntax

'Declaration
Public Class EntityCollectionConfiguration(Of TEntityType) _
    Inherits CollectionTypeConfiguration
'Usage
Dim instance As EntityCollectionConfiguration(Of TEntityType)
public class EntityCollectionConfiguration<TEntityType> : CollectionTypeConfiguration
generic<typename TEntityType>
public ref class EntityCollectionConfiguration : public CollectionTypeConfiguration
type EntityCollectionConfiguration<'TEntityType> =  
    class 
        inherit CollectionTypeConfiguration 
    end
JScript does not support generic types and methods.

Type Parameters

  • TEntityType
    The EntityType that is the ElementType of the EntityCollection

The EntityCollectionConfiguration<TEntityType> type exposes the following members.

Properties

  Name Description
Public property ClrType Gets the CLR type associated with this collection type. (Inherited from CollectionTypeConfiguration.)
Public property ElementType Gets the IEdmTypeConfiguration of elements in this collection. (Inherited from CollectionTypeConfiguration.)
Public property FullName Gets the full name (including namespace) of this collection type. (Inherited from CollectionTypeConfiguration.)
Public property Kind Gets the kind of the EdmType. In this case, it is Collection. (Inherited from CollectionTypeConfiguration.)
Public property ModelBuilder Gets the associated ODataModelBuilder. (Inherited from CollectionTypeConfiguration.)
Public property Name Gets the name of this collection type. (Inherited from CollectionTypeConfiguration.)
Public property Namespace Gets the namespace of this collection type. (Inherited from CollectionTypeConfiguration.)

Top

Methods

  Name Description
Public method Action Creates a new Action that binds to Collection(EntityType).
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Public method TransientAction Creates a new Action that sometimes binds to Collection(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