EntityTypeBuilder<TEntity>.HasBaseType Yöntem

Tanım

Aşırı Yüklemeler

HasBaseType(String)

Devralma hiyerarşisinde bu varlık türünün temel türünü ayarlar.

HasBaseType(Type)

Devralma hiyerarşisinde bu varlık türünün temel türünü ayarlar.

HasBaseType<TBaseType>()

Devralma hiyerarşisinde bu varlık türünün temel türünü ayarlar.

HasBaseType(String)

Devralma hiyerarşisinde bu varlık türünün temel türünü ayarlar.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> HasBaseType (string name);
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> HasBaseType (string? name);
override this.HasBaseType : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)>
Public Overridable Function HasBaseType (name As String) As EntityTypeBuilder(Of TEntity)

Parametreler

name
String

Temel türün adı veya null temel türün olmadığını belirtmek için.

Döndürülenler

EntityTypeBuilder<TEntity>

Birden çok yapılandırma çağrısının zincirlene kadar aynı oluşturucu örneği.

Şunlara uygulanır

HasBaseType(Type)

Devralma hiyerarşisinde bu varlık türünün temel türünü ayarlar.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> HasBaseType (Type entityType);
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> HasBaseType (Type? entityType);
override this.HasBaseType : Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)>
Public Overridable Function HasBaseType (entityType As Type) As EntityTypeBuilder(Of TEntity)

Parametreler

entityType
Type

Temel tür veya null temel türün olmadığını belirtmek için.

Döndürülenler

EntityTypeBuilder<TEntity>

Birden çok yapılandırma çağrısının zincirlene kadar aynı oluşturucu örneği.

Şunlara uygulanır

HasBaseType<TBaseType>()

Devralma hiyerarşisinde bu varlık türünün temel türünü ayarlar.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> HasBaseType<TBaseType> ();
override this.HasBaseType : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)>
Public Overridable Function HasBaseType(Of TBaseType) () As EntityTypeBuilder(Of TEntity)

Tür Parametreleri

TBaseType

Temel tür veya null temel türün olmadığını belirtmek için.

Döndürülenler

EntityTypeBuilder<TEntity>

Birden çok yapılandırma çağrısının zincirlene kadar aynı oluşturucu örneği.

Şunlara uygulanır