/// <summary>
 /// Add a new index item to our list of indicies.
 /// </summary>
 /// <param name="position">0 is the left most index</param>
 /// <param name="boundName">The const number or other leaf that is the index upper value</param>
 /// <param name="isConst">True if this is a number vs a leaf name</param>
 public void Add(int position, string boundName, bool isConst)
 {
     Indicies.Add(new IndexInfo()
     {
         indexPosition = position, indexBoundName = boundName, indexConst = isConst
     });
 }
Beispiel #2
0
        /// <summary>
        /// Adds a Table Index to the Table metadata
        /// </summary>
        /// <returns>The index.</returns>
        /// <param name="name">Name.</param>
        /// <param name="pk">Pk.</param>
        /// <param name="sk">Sk.</param>
        public IndexMetadata AddIndex(string name, string pk, string sk)
        {
            var index = new IndexMetadata()
            {
                Name             = name,
                PartitionKeyName = pk,
                SortKeyName      = sk
            };

            Indicies.Add(name, index);
            return(index);
        }