Share via


IndexAttributeConvention Class

Definition

A convention for discovering IndexAttribute attributes on properties and generating IndexAnnotation column annotations in the model.

public class IndexAttributeConvention : System.Data.Entity.ModelConfiguration.Conventions.AttributeToColumnAnnotationConvention<System.ComponentModel.DataAnnotations.Schema.IndexAttribute,System.Data.Entity.Infrastructure.Annotations.IndexAnnotation>
type IndexAttributeConvention = class
    inherit AttributeToColumnAnnotationConvention<IndexAttribute, IndexAnnotation>
Public Class IndexAttributeConvention
Inherits AttributeToColumnAnnotationConvention(Of IndexAttribute, IndexAnnotation)
Inheritance

Constructors

IndexAttributeConvention()

Constructs a new instance of the convention.

Methods

Properties()

Begins configuration of a lightweight convention that applies to all properties in the model.

(Inherited from Convention)
Properties<T>()

Begins configuration of a lightweight convention that applies to all primitive properties of the specified type in the model.

(Inherited from Convention)
Types()

Begins configuration of a lightweight convention that applies to all mapped types in the model.

(Inherited from Convention)
Types<T>()

Begins configuration of a lightweight convention that applies to all mapped types in the model that derive from or implement the specified type.

(Inherited from Convention)

Applies to