語言

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

適用於