public void ReNameTableColumn(string oldAuroName, string newName) { CloneRelationFieldDef relationField = m_RelationFields.SingleOrDefault((f) => (f.TargetName().CompareTo(oldAuroName) == 0)); if (relationField != null) { relationField.SetTargetName(newName); } }
public object Clone() { CloneRelationFieldDef other = (CloneRelationFieldDef)this.MemberwiseClone(); other.m_source = (RelationFieldDef)this.m_source.Clone(); other.m_target = (RelationFieldDef)this.m_target.Clone(); return(other); }
public RelationFieldDef AppendForeignField(string lpszForeignName, string lpszRelName) { RelationFieldDef fieldInfo = new RelationFieldDef(lpszForeignName, lpszRelName); CloneRelationFieldDef fieldClone = new CloneRelationFieldDef(null, fieldInfo); m_RelationFields.Add(fieldClone); m_nFields++; return(fieldInfo); }