Share via


CreateIndexOperation Class

Definition

Represents creating a database index.

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 class CreateIndexOperation : System.Data.Entity.Migrations.Model.IndexOperation
type CreateIndexOperation = class
    inherit IndexOperation
Public Class CreateIndexOperation
Inherits IndexOperation
Inheritance

Constructors

CreateIndexOperation(Object)

Initializes a new instance of the CreateIndexOperation class. The Table and Columns properties should also be populated.

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.

(Inherited from IndexOperation)
HasDefaultName

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

(Inherited from IndexOperation)
Inverse

Gets an operation to drop this index.

IsClustered

Gets or sets whether this is a clustered index.

IsDestructiveChange

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

IsUnique

Gets or sets a value indicating if this is a unique index.

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.

(Inherited from IndexOperation)
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.

(Inherited from IndexOperation)

Applies to