共用方式為


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

應擁有之實體類型的型別。

適用於