ODataModelBuilder.Entity<TEntityType> Method
Registers an entity type as part of the model and returns an object that can be used to configure the entity. This method can be called multiple times for the same entity to perform multiple lines of configuration.
Namespace: System.Web.Http.OData.Builder
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
'Declaration
Public Function Entity(Of TEntityType As Class) As EntityTypeConfiguration(Of TEntityType)
'Usage
Dim instance As ODataModelBuilder
Dim returnValue As EntityTypeConfiguration(Of TEntityType)
returnValue = instance.Entity()
public EntityTypeConfiguration<TEntityType> Entity<TEntityType>()
where TEntityType : class
public:
generic<typename TEntityType>
where TEntityType : ref class
EntityTypeConfiguration<TEntityType>^ Entity()
member Entity : unit -> EntityTypeConfiguration<'TEntityType> when 'TEntityType : not struct
JScript does not support generic types and methods.
Type Parameters
- TEntityType
The type to be registered or configured.
Return Value
Type: System.Web.Http.OData.Builder.EntityTypeConfiguration<TEntityType>
The configuration object for the specified entity type.