Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DbModelBuilder::Entity<TEntityType> Method ()

Entity Framework 6.0
 

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.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)

public:
generic<typename TEntityType>
where TEntityType : ref class
virtual EntityTypeConfiguration<TEntityType>^ Entity()

Return Value

Type: System.Data.Entity.ModelConfiguration::EntityTypeConfiguration<TEntityType>^

The configuration object for the specified entity type.

Type Parameters

TEntityType

The type to be registered or configured.

Return to top
Show: