ConventionModelExtensions.RemoveOwned(IConventionModel, Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
移除給定的擁有型別,表示發現匹配的實體型別不應被設定為擁有型。
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
不應該被擁有的實體類型。
傳回
被移除的擁有型的名稱。