ConventionModelExtensions.FindIgnoredConfigurationSource 方法

定義

指出是否忽略指定的實體類型。

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

參數

model
IConventionModel

要檢查是否忽略類型的模型。

type
Type

可能忽略的實體類型。

傳回

如果忽略指定的實體類型,則為組態來源, null 否則為 。

適用於