ConventionModelExtensions.FindIsOwnedConfigurationSource 方法

定义

返回一个值,该值指示在发现时是否应将使用给定类型的实体类型配置为拥有的类型。

public static Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource? FindIsOwnedConfigurationSource (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Type clrType);
public static Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource? FindIsOwnedConfigurationSource (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Type type);
static member FindIsOwnedConfigurationSource : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Type -> Nullable<Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource>
static member FindIsOwnedConfigurationSource : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Type -> Nullable<Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource>
<Extension()>
Public Function FindIsOwnedConfigurationSource (model As IConventionModel, clrType As Type) As Nullable(Of ConfigurationSource)
<Extension()>
Public Function FindIsOwnedConfigurationSource (model As IConventionModel, type As Type) As Nullable(Of ConfigurationSource)

参数

model
IConventionModel

模型。

clrTypetype
Type

可以拥有的实体类型的类型。

返回

如果给定的类型名称标记为拥有,则为配置源, null 否则为 。

适用于