IndexInfoHasSameColumns Method |
Determines whether this index has the same ordered columns and sort directions as another index.
Namespace: Dundas.BI.Entities.DataCubesAssembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (26.3.0.1000)
Syntaxpublic bool HasSameColumns(
IndexInfo other
)
Public Function HasSameColumns (
other As IndexInfo
) As Boolean
public:
bool HasSameColumns(
IndexInfo^ other
)
member HasSameColumns :
other : IndexInfo -> bool Parameters
- other IndexInfo
- The index to compare against.
Return Value
Boolean if both indexes reference the same elements in the same order with the same
sort directions; otherwise,
. Two indexes over the same elements in a different order,
or with different sort directions, are considered distinct.
RemarksOrder and direction are significant: [A ASC, B DESC] equals only [A ASC, B DESC],
not [B DESC, A ASC] nor [A ASC, B ASC]. This mirrors how the database treats indexes — the
leading column and per-column direction determine which queries an index can serve.
See Also