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