IConventionModel.RemoveEntityType 方法

定義

多載

RemoveEntityType(IConventionEntityType)

從模型移除實體類型。

RemoveEntityType(String)

從模型移除實體類型,而不定義導覽。

RemoveEntityType(Type)

從模型移除實體類型。

RemoveEntityType(String, String, IConventionEntityType)

移除具有指定類型的實體類型,定義導覽名稱和定義實體類型。

RemoveEntityType(Type, String, IConventionEntityType)

移除具有指定類型的實體類型,定義導覽名稱和定義實體類型。

RemoveEntityType(IConventionEntityType)

從模型移除實體類型。

public void RemoveEntityType (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
public Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType RemoveEntityType (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
public Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType? RemoveEntityType (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
abstract member RemoveEntityType : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> unit
abstract member RemoveEntityType : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
Public Sub RemoveEntityType (entityType As IConventionEntityType)
Public Function RemoveEntityType (entityType As IConventionEntityType) As IConventionEntityType

參數

entityType
IConventionEntityType

要移除的實體類型。

傳回

已移除的實體類型,如果找不到實體類型,則 null 為 。

適用於

RemoveEntityType(String)

從模型移除實體類型,而不定義導覽。

public Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType? RemoveEntityType (string name);
abstract member RemoveEntityType : string -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
Public Function RemoveEntityType (name As String) As IConventionEntityType

參數

name
String

要移除之實體類型的名稱。

傳回

已移除的實體類型。

適用於

RemoveEntityType(Type)

從模型移除實體類型。

public Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType? RemoveEntityType (Type type);
abstract member RemoveEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
Public Function RemoveEntityType (type As Type) As IConventionEntityType

參數

type
Type

要移除的實體類型。

傳回

已移除的實體類型。

適用於

RemoveEntityType(String, String, IConventionEntityType)

移除具有指定類型的實體類型,定義導覽名稱和定義實體類型。

public Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType? RemoveEntityType (string name, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType definingEntityType);
abstract member RemoveEntityType : string * string * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
Public Function RemoveEntityType (name As String, definingNavigationName As String, definingEntityType As IConventionEntityType) As IConventionEntityType

參數

name
String

要移除之實體類型的名稱。

definingNavigationName
String

定義導覽。

definingEntityType
IConventionEntityType

定義實體類型。

傳回

已移除的實體類型。

適用於

RemoveEntityType(Type, String, IConventionEntityType)

移除具有指定類型的實體類型,定義導覽名稱和定義實體類型。

public Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType? RemoveEntityType (Type type, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType definingEntityType);
abstract member RemoveEntityType : Type * string * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
Public Function RemoveEntityType (type As Type, definingNavigationName As String, definingEntityType As IConventionEntityType) As IConventionEntityType

參數

type
Type

用來表示此實體類型實例的 CLR 類別。

definingNavigationName
String

定義導覽。

definingEntityType
IConventionEntityType

定義實體類型。

傳回

已移除的實體類型。

適用於