public void ReNameTargetColumn(string oldColumnName, string newColumnName) { CloneIndexFieldDefInfo indexField = m_IndexFields.SingleOrDefault((f) => (f.SourceName().CompareTo(oldColumnName) == 0)); if (indexField != null) { indexField.SetTargetName(newColumnName); } }
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); }
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++; }