RelationalColumnAttributeConvention Class

Definition

A convention that configures column name and type for a property based on the applied ColumnAttribute.

public class RelationalColumnAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.Schema.ColumnAttribute>
type RelationalColumnAttributeConvention = class
    inherit PropertyAttributeConventionBase<ColumnAttribute>
Public Class RelationalColumnAttributeConvention
Inherits PropertyAttributeConventionBase(Of ColumnAttribute)
Inheritance
RelationalColumnAttributeConvention

Remarks

See Model building conventions for more information and examples.

Constructors

RelationalColumnAttributeConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

Creates a new instance of RelationalColumnAttributeConvention.

Properties

Dependencies

Dependencies for this service.

(Inherited from PropertyAttributeConventionBase<TAttribute>)
RelationalDependencies

Relational provider-specific dependencies for this service.

Methods

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Called after a complex property is added to an type-like object.

(Inherited from PropertyAttributeConventionBase<TAttribute>)
ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Called after the backing field for a complex property is changed.

(Inherited from PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Called after a complex property is added to a type with an attribute on the associated CLR property or field.

(Inherited from PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, ColumnAttribute, MemberInfo, IConventionContext)

Called after a property is added to the entity type with an attribute on the associated CLR property or field.

ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

Called after a property is added to the entity type.

(Inherited from PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Called after a property is added to the entity type with an attribute on the associated CLR property or field.

(Inherited from PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Called after the backing field for a property is changed.

(Inherited from PropertyAttributeConventionBase<TAttribute>)

Applies to