예제 #1
0
        public override object Clone()
        {
            if (!this.EntitySelected)
                return null;
            RelationShip r = new RelationShip();
            r.Id = this.Id;
            r.Name = this.Name;
            r.ChildColumn = this.ChildColumn.Clone() as Column;
            r.ChildTable = this.ChildTable.Clone() as Table;
            r.EntitySelected = this.EntitySelected;
            r.MasterTable = this.MasterTable.Clone() as Table;
            r.ParentColumn = this.ParentColumn.Clone() as Column;
            r.ParentDatabase = this.ParentDatabase;
            return r;
            

        }
예제 #2
0
        public override object Clone()
        {
            if (!this.EntitySelected)
            {
                return(null);
            }
            RelationShip r = new RelationShip();

            r.Id             = this.Id;
            r.Name           = this.Name;
            r.ChildColumn    = this.ChildColumn.Clone() as Column;
            r.ChildTable     = this.ChildTable.Clone() as Table;
            r.EntitySelected = this.EntitySelected;
            r.MasterTable    = this.MasterTable.Clone() as Table;
            r.ParentColumn   = this.ParentColumn.Clone() as Column;
            r.ParentDatabase = this.ParentDatabase;
            return(r);
        }