MutableModelExtensions.AddOwned(IMutableModel, Type) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将给定的实体类型标记为“拥有”,指示在发现匹配的实体类型时应配置为“拥有”。
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
应拥有的实体类型的类型。