共用方式為


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

適用於