CreateIndexOperation Class

Represents creating a database index.

Namespace:  System.Data.Entity.Migrations.Model
Assembly:  EntityFramework (in EntityFramework.dll)

public class CreateIndexOperation : IndexOperation

The CreateIndexOperation type exposes the following members.

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

Public propertyAnonymousArguments Gets additional arguments that may be processed by providers. (Inherited from MigrationOperation.)
Public propertyColumns Gets or sets the columns that are indexed. (Inherited from IndexOperation.)
Public propertyHasDefaultName Gets a value indicating if a specific name has been supplied for this index. (Inherited from IndexOperation.)
Public propertyInverse Gets an operation to drop this index. (Overrides MigrationOperation.Inverse.)
Public propertyIsDestructiveChangeGets a value indicating whether the change is destructive. (Overrides MigrationOperation.IsDestructiveChange.)
Public propertyIsUnique Gets or sets a value indicating if this is a unique index.
Public propertyName Gets or sets the name of this index. If no name is supplied, a default name will be calculated. (Inherited from IndexOperation.)
Public propertyTable Gets or sets the table the index belongs to. (Inherited from IndexOperation.)

Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.