Tortuga.Chain Namespace
Tortuga.Chain.CommandBuilders Namespace
Tortuga.Chain.Metadata Namespace

IndexMetadata<(Of <(<'TObjectName, TDbType>)>)> Constructor

Initializes a new instance of the IndexMetadata<(Of <(<'TObjectName, TDbType>)>)> class.

Namespace:  Tortuga.Chain.Metadata
Assembly:  Tortuga.Chain.Core (in Tortuga.Chain.Core.dll)

Syntax


public IndexMetadata(
	TObjectName tableName,
	Nullable<string> name,
	bool isPrimaryKey,
	bool isUnique,
	bool isUniqueConstraint,
	IndexColumnMetadataCollection<TDbType> columns,
	Nullable<long> indexSizeKB,
	Nullable<long> rowCount,
	IndexType indexType
)
Public Sub New ( _
	tableName As TObjectName, _
	name As Nullable(Of String), _
	isPrimaryKey As Boolean, _
	isUnique As Boolean, _
	isUniqueConstraint As Boolean, _
	columns As IndexColumnMetadataCollection(Of TDbType), _
	indexSizeKB As Nullable(Of Long), _
	rowCount As Nullable(Of Long), _
	indexType As IndexType _
)
public:
IndexMetadata(
	TObjectName tableName, 
	Nullable<String^> name, 
	bool^ isPrimaryKey, 
	bool^ isUnique, 
	bool^ isUniqueConstraint, 
	IndexColumnMetadataCollection<TDbType>^ columns, 
	Nullable<long long^> indexSizeKB, 
	Nullable<long long^> rowCount, 
	IndexType^ indexType
)

Parameters

tableName
Type: TObjectName
Name of the table (or view).
name
Type: Nullable<(Of <(<'String>)>)>
The name.
isPrimaryKey
Type: Boolean
if set to true is a primary key.
isUnique
Type: Boolean
if set to true is a unique index.
isUniqueConstraint
Type: Boolean
if set to true is a unique constraint.
columns
Type: Tortuga.Chain.Metadata..::..IndexColumnMetadataCollection<(Of <(<'TDbType>)>)>
The columns.
indexSizeKB
Type: Nullable<(Of <(<'Int64>)>)>
Approximate index size in KB
rowCount
Type: Nullable<(Of <(<'Int64>)>)>
Approximate row count
indexType
Type: Tortuga.Chain.Metadata..::..IndexType
Type of the index.

Exceptions


ExceptionCondition
[ArgumentNullException]columns