MutableModelExtensions.RemoveOwned(IMutableModel, Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
移除指定的擁有類型,指出探索到的相符實體類型不應該設定為擁有。
public static void RemoveOwned (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, Type clrType);
public static string RemoveOwned (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, Type type);
static member RemoveOwned : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Type -> unit
static member RemoveOwned : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Type -> string
<Extension()>
Public Sub RemoveOwned (model As IMutableModel, clrType As Type)
<Extension()>
Public Function RemoveOwned (model As IMutableModel, type As Type) As String
參數
- model
- IMutableModel
要從中移除擁有型別名稱的模型。
- clrTypetype
- Type
不應擁有之實體類型的型別。
傳回
已移除的擁有型別名稱。