語言

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

適用於