EntityTypeBuilder.HasBaseType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
HasBaseType(Type) |
Sets the base type of this entity type in an inheritance hierarchy. |
HasBaseType(String) |
Sets the base type of this entity type in an inheritance hierarchy. |
HasBaseType(Type)
Sets the base type of this entity type in an inheritance hierarchy.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder HasBaseType (Type entityType);
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder HasBaseType (Type? entityType);
abstract member HasBaseType : Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.HasBaseType : Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function HasBaseType (entityType As Type) As EntityTypeBuilder
Parameters
- entityType
- Type
The base type or null
to indicate no base type.
Returns
The same builder instance so that multiple configuration calls can be chained.
Applies to
HasBaseType(String)
Sets the base type of this entity type in an inheritance hierarchy.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder HasBaseType (string name);
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder HasBaseType (string? name);
abstract member HasBaseType : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.HasBaseType : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function HasBaseType (name As String) As EntityTypeBuilder
Parameters
- name
- String
The name of the base type or null
to indicate no base type.
Returns
The same builder instance so that multiple configuration calls can be chained.
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor