Ejemplo n.º 1
0
        public void ReNameTargetColumn(string oldColumnName, string newColumnName)
        {
            CloneIndexFieldDefInfo indexField = m_IndexFields.SingleOrDefault((f) => (f.SourceName().CompareTo(oldColumnName) == 0));

            if (indexField != null)
            {
                indexField.SetTargetName(newColumnName);
            }
        }
Ejemplo n.º 2
0
        public object Clone()
        {
            CloneIndexFieldDefInfo other = (CloneIndexFieldDefInfo)this.MemberwiseClone();

            other.m_source = (IndexFieldDefInfo)this.m_source.Clone();
            other.m_target = (IndexFieldDefInfo)this.m_target.Clone();

            return(other);
        }
Ejemplo n.º 3
0
        public void AppendTargetField(string lpszName, bool descending = false)
        {
            IndexFieldDefInfo fieldInfo = new IndexFieldDefInfo(lpszName, descending);

            CloneIndexFieldDefInfo fieldClone = new CloneIndexFieldDefInfo(null, fieldInfo);

            m_IndexFields.Add(fieldClone);

            m_nFields++;
        }