語言

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

應該擁有的實體類型。

適用於