Table of Contents

Class IndexUpdate

Namespace
Dynamicweb.Updates
Assembly
Dynamicweb.Core.dll

Represents an update which adds an index to a table. Exposes the target table and index name so tooling, such as health checks, can verify the index still exists on a given installation.

public sealed class IndexUpdate : SqlUpdate
Inheritance
IndexUpdate
Inherited Members

Constructors

IndexUpdate(string, UpdateProvider, string, string, string, string)

Initializes a new instance of the IndexUpdate class.

public IndexUpdate(string id, UpdateProvider provider, string sql, string tableName, string indexName, string indexDefinition)

Parameters

id string

A newly generated GUID identifying this update, e.g. Guid.NewGuid().ToString(). Never write one by hand or copy an existing id: an update is recorded as applied by this id, so a second update declared with an id already used in the same provider is silently skipped and never runs.

provider UpdateProvider

The update provider that owns this update.

sql string

The SQL statement that creates the index.

tableName string

The name of the table the index is created on.

indexName string

The name of the index.

indexDefinition string

The column/INCLUDE definition of the index.

Properties

IndexDefinition

The raw column/INCLUDE definition passed to AddIndex(string, UpdateProvider, string, string, string), e.g. "([ColumnA], [ColumnB]) INCLUDE ([ColumnC])".

public string IndexDefinition { get; }

Property Value

string

IndexName

The name of the index.

public string IndexName { get; }

Property Value

string

TableName

The table the index is created on.

public string TableName { get; }

Property Value

string
To top