MutableModelExtensions.AddShared(IMutableModel, Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
標記該實體類型為共享,表示發現匹配實體類型時應配置為共享類型實體類型。
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
應該分享的實體類型。