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

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

返回

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

适用于