ConventionModelExtensions.IsOwned(IConventionModel, Type) 方法

定义

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

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

参数

model
IConventionModel

模型。

clrTypetype
Type

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

返回

true 如果给定的类型名称标记为“拥有”,则为 ; null 否则为 。

适用于