MutableModelExtensions.IsOwned(IMutableModel, Type) 方法

定义

返回一个值,该值指示在约定发现时,是否应将使用给定类型的实体类型配置为拥有的类型。

public static bool IsOwned (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, Type clrType);
public static bool IsOwned (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, Type type);
static member IsOwned : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Type -> bool
static member IsOwned : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Type -> bool
<Extension()>
Public Function IsOwned (model As IMutableModel, clrType As Type) As Boolean
<Extension()>
Public Function IsOwned (model As IMutableModel, type As Type) As Boolean

参数

model
IMutableModel

要从中获取值的模型。

clrTypetype
Type

可能拥有的实体类型的类型。

返回

true 如果匹配的实体类型在发现时应配置为拥有,则为 ; false 否则为 。

适用于