KeylessAttributeConvention 类

定义

忽略具有 KeylessAttribute的实体类型的约定。

public class KeylessAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.TypeAttributeConventionBase<Microsoft.EntityFrameworkCore.KeylessAttribute>
type KeylessAttributeConvention = class
    inherit TypeAttributeConventionBase<KeylessAttribute>
Public Class KeylessAttributeConvention
Inherits TypeAttributeConventionBase(Of KeylessAttribute)
继承

注解

有关详细信息和示例,请参阅 模型生成约定

构造函数

KeylessAttributeConvention(ProviderConventionSetBuilderDependencies)

创建 KeylessAttributeConvention 的新实例。

属性

Dependencies

此服务的依赖项。

(继承自 TypeAttributeConventionBase<TAttribute>)

方法

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

在将复杂属性添加到类似类型的对象后调用。

(继承自 TypeAttributeConventionBase<TAttribute>)
ProcessComplexTypeAdded(IConventionComplexTypeBuilder, TAttribute, IConventionContext)

如果复杂类型具有 属性,则将其添加到模型后调用。

(继承自 TypeAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

在实体类型添加到模型后调用。

(继承自 TypeAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, KeylessAttribute, IConventionContext<IConventionEntityTypeBuilder>)

如果实体类型具有属性,则将其添加到模型后调用。

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

如果实体类型具有属性,则将其添加到模型后调用。

(继承自 TypeAttributeConventionBase<TAttribute>)
ReplaceWithEntityType(IConventionComplexTypeBuilder, Nullable<Boolean>)

尝试将复杂类型替换为实体类型。

(继承自 TypeAttributeConventionBase<TAttribute>)

适用于