共用方式為


ConventionModelExtensions.RemoveOwned(IConventionModel, Type) 方法

定義

移除指定的擁有類型,指出探索到的相符實體類型何時不應設定為擁有。

public static void RemoveOwned (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Type clrType);
public static string RemoveOwned (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Type type);
static member RemoveOwned : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Type -> unit
static member RemoveOwned : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Type -> string
<Extension()>
Public Sub RemoveOwned (model As IConventionModel, clrType As Type)
<Extension()>
Public Function RemoveOwned (model As IConventionModel, type As Type) As String

參數

model
IConventionModel

要從中移除擁有型別名稱的模型。

clrTypetype
Type

不應該擁有之實體類型的型別。

傳回

已移除之擁有型別的名稱。

適用於