コード例 #1
0
        public void ReNameTableColumn(string oldAuroName, string newName)
        {
            CloneRelationFieldDef relationField = m_RelationFields.SingleOrDefault((f) => (f.TargetName().CompareTo(oldAuroName) == 0));

            if (relationField != null)
            {
                relationField.SetTargetName(newName);
            }
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }