共用方式為


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 否則為 。

適用於