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

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

适用于