ComplexTypeAttributeConvention 类

定义

一种约定,用于配置具有 ComplexTypeAttribute的类型。

public class ComplexTypeAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.TypeAttributeConventionBase<System.ComponentModel.DataAnnotations.Schema.ComplexTypeAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention
type ComplexTypeAttributeConvention = class
    inherit TypeAttributeConventionBase<ComplexTypeAttribute>
    interface IComplexPropertyAddedConvention
    interface IConvention
Public Class ComplexTypeAttributeConvention
Inherits TypeAttributeConventionBase(Of ComplexTypeAttribute)
Implements IComplexPropertyAddedConvention
继承
ComplexTypeAttributeConvention
实现

注解

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

构造函数

ComplexTypeAttributeConvention(ProviderConventionSetBuilderDependencies)

创建 ComplexTypeAttributeConvention 的新实例。

属性

Dependencies

此服务的依赖项。

(继承自 TypeAttributeConventionBase<TAttribute>)

方法

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

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

ProcessComplexTypeAdded(IConventionComplexTypeBuilder, TAttribute, IConventionContext)

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

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

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

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

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

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

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

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

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

(继承自 TypeAttributeConventionBase<TAttribute>)

适用于