Class SqlIndex
Represents an SQL index constraint.
public abstract class SqlIndex : SqlConstraint, ISqlIndex, ISqlConstraint, ISqlObject
- Inheritance
-
SqlIndex
- Implements
- Derived
- Inherited Members
Constructors
SqlIndex(SqlTable, SqlIndexBuilder)
Creates a new SqlIndex instance.
protected SqlIndex(SqlTable table, SqlIndexBuilder builder)
Parameters
table
SqlTableTable that this index belongs to.
builder
SqlIndexBuilderSource builder.
Properties
Columns
Collection of columns that define this index.
public SqlIndexedArray<SqlColumn> Columns { get; }
Property Value
IsPartial
Specifies whether or not this index is partial.
public bool IsPartial { get; }
Property Value
IsUnique
Specifies whether or not this index is unique.
public bool IsUnique { get; }
Property Value
IsVirtual
Specifies whether or not this index is virtual.
public bool IsVirtual { get; }
Property Value
Remarks
Virtual indexes aren't actually created in the database.