語言

MutableModelExtensions.AddShared(IMutableModel, Type) 方法

定義

標記該實體類型為共享,表示發現匹配實體類型時應配置為共享類型實體類型。

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

參數

model
IMutableModel

要加入共享型別的模型。

type
Type

應該分享的實體類型。

適用於