語言

ModelValidator.IsOwned 方法

定義

多載

名稱 Description
IsOwned(Type, IConventionModel)

回傳一個值,指示該目標 CLR 類型是否對應於擁有實體類型。

IsOwned(Type, IModel)

回傳一個值,指示該目標 CLR 類型是否對應於擁有實體類型。

IsOwned(Type, IConventionModel)

來源:
ModelValidator.cs
來源:
ModelValidator.cs
來源:
ModelValidator.cs
來源:
ModelValidator.cs
來源:
ModelValidator.cs

回傳一個值,指示該目標 CLR 類型是否對應於擁有實體類型。

protected virtual bool IsOwned(Type targetType, Microsoft.EntityFrameworkCore.Metadata.IConventionModel conventionModel);
abstract member IsOwned : Type * Microsoft.EntityFrameworkCore.Metadata.IConventionModel -> bool
override this.IsOwned : Type * Microsoft.EntityFrameworkCore.Metadata.IConventionModel -> bool
Protected Overridable Function IsOwned (targetType As Type, conventionModel As IConventionModel) As Boolean

參數

targetType
Type

目標CLR類型。

conventionModel
IConventionModel

模型。

傳回

true 若給定的 CLR 類型對應於擁有實體類型。

適用於

IsOwned(Type, IModel)

來源:
ModelValidator.cs

回傳一個值,指示該目標 CLR 類型是否對應於擁有實體類型。

protected virtual bool IsOwned(Type targetType, Microsoft.EntityFrameworkCore.Metadata.IModel model);
abstract member IsOwned : Type * Microsoft.EntityFrameworkCore.Metadata.IModel -> bool
override this.IsOwned : Type * Microsoft.EntityFrameworkCore.Metadata.IModel -> bool
Protected Overridable Function IsOwned (targetType As Type, model As IModel) As Boolean

參數

targetType
Type

目標CLR類型。

model
IModel

模型。

傳回

true 若給定的 CLR 類型對應於擁有實體類型。

適用於