Example #1
0
        /// <summary>
        /// Gets a list of all indexes
        /// </summary>
        /// <returns></returns>
        public Index[] GetIndexes()
        {
            List<Index> indexes = new List<Index>();
            foreach (Microsoft.SqlServer.Management.Smo.Index idx in _table.Indexes)
            {
                Index index = new Index(idx, this);
                indexes.Add(index);
            }

            return indexes.ToArray();
        }
Example #2
0
 /// <summary>
 /// Loads an index into the Template Data object to be used in generating GetBy statements
 /// </summary>
 /// <param name="Index"></param>
 internal void LoadIndex(Index Index)
 {
     _index = Index;
 }