MutableModelExtensions.RemoveOwned(IMutableModel, Type) 方法

定义

删除给定的自有类型,指示在发现匹配实体类型时不应配置为拥有的实体类型。

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

不应拥有的实体类型的类型。

返回

已删除的自有类型的名称。

适用于