语言

MutableModelExtensions.AddOwned(IMutableModel, Type) 方法

定义

将给定的实体类型标记为拥有,指示何时应将发现的匹配实体类型配置为拥有。

public static void AddOwned(this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, Type clrType);
public static void AddOwned(this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, Type type);
static member AddOwned : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Type -> unit
static member AddOwned : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Type -> unit
<Extension()>
Public Sub AddOwned (model As IMutableModel, clrType As Type)
<Extension()>
Public Sub AddOwned (model As IMutableModel, type As Type)

参数

model
IMutableModel

要向其添加自有类型的模型。

clrTypetype
Type

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

适用于