语言

KeylessAttributeConvention 类

定义

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

[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
public class KeylessAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.TypeAttributeConventionBase<Microsoft.EntityFrameworkCore.KeylessAttribute>
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
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>)

适用于