Share via


IndexOperation Class

Definition

Common base class for operations affecting indexes. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

public abstract class IndexOperation : System.Data.Entity.Migrations.Model.MigrationOperation
type IndexOperation = class
    inherit MigrationOperation
Public MustInherit Class IndexOperation
Inherits MigrationOperation
Inheritance
IndexOperation
Derived

Constructors

IndexOperation(Object)

Initializes a new instance of the IndexOperation class. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

Properties

AnonymousArguments

Gets additional arguments that may be processed by providers.

Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

(Inherited from MigrationOperation)
Columns

Gets the columns that are indexed. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

HasDefaultName

Gets a value indicating if a specific name has been supplied for this index.

Inverse

Gets an operation that will revert this operation.

(Inherited from MigrationOperation)
IsDestructiveChange

Gets a value indicating if this operation may result in data loss.

(Inherited from MigrationOperation)
Name

Gets or sets the name of this index. If no name is supplied, a default name will be calculated. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

Table

Gets or sets the table the index belongs to. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

Methods

BuildDefaultName(IEnumerable<String>)

Creates a default index name based on the supplied column names.

Applies to