Язык

PropertyDiscoveryConvention Класс

Определение

Соглашение, которое добавляет свойства в типы сущностей, соответствующие скалярным общедоступным свойствам в типе CLR.

[System.Runtime.CompilerServices.Nullable(0)]
public class PropertyDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention
public class PropertyDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type PropertyDiscoveryConvention = class
    interface IEntityTypeAddedConvention
    interface IConvention
    interface IEntityTypeBaseTypeChangedConvention
    interface IComplexPropertyAddedConvention
type PropertyDiscoveryConvention = class
    interface IEntityTypeAddedConvention
    interface IConvention
    interface IEntityTypeBaseTypeChangedConvention
Public Class PropertyDiscoveryConvention
Implements IComplexPropertyAddedConvention, IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention
Public Class PropertyDiscoveryConvention
Implements IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention
Наследование
PropertyDiscoveryConvention
Атрибуты
Реализации

Комментарии

Дополнительные сведения и примеры см. в соглашениях о сборке моделей .

Конструкторы

Имя. Описание
PropertyDiscoveryConvention(ProviderConventionSetBuilderDependencies, Boolean)

Создает новый экземпляр PropertyDiscoveryConvention.

PropertyDiscoveryConvention(ProviderConventionSetBuilderDependencies)

Создает новый экземпляр PropertyDiscoveryConvention.

Свойства

Имя. Описание
Dependencies

Зависимости для этой службы.

UseAttributes

Значение, указывающее, будет ли соглашение использовать атрибуты, найденные на элементах.

Методы

Имя. Описание
DiscoverPrimitiveProperties(IConventionTypeBaseBuilder, IConventionContext)

Обнаруживает свойства для заданного структурного типа.

GetMembers(IConventionTypeBase)

Возвращает элементы СРЕДЫ CLR из заданного типа, которые следует учитывать при обнаружении свойств.

IsCandidatePrimitiveProperty(MemberInfo, IConventionTypeBase, CoreTypeMapping, Type)

Возвращает значение, указывающее, является ли данный элемент кандидатом на примитивное свойство.

IsCandidatePrimitiveProperty(MemberInfo, IConventionTypeBase, CoreTypeMapping)

Возвращает значение, указывающее, является ли данный элемент кандидатом на примитивное свойство.

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Вызывается после добавления сложного свойства в объект типа.

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Вызывается после добавления типа сущности в модель.

ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, IConventionContext<IConventionEntityType>)

Вызывается после изменения базового типа сущности.

Применяется к