Example #1
0
 protected Column(Column original)
 {
     this.AllowNulls = original.AllowNulls;
     this.DataType = original.DataType;
     this.DefaultValue = original.DefaultValue;
     this.Description = original.Description;
     this.IsIdentity = original.IsIdentity;
     this.IdentityIncrement = original.IdentityIncrement;
     this.IdentitySeed = original.IdentitySeed;
     this.InPrimaryKey = original.InPrimaryKey;
     this.IsRowGuid = original.IsRowGuid;
     this.IsReadOnly = original.IsReadOnly;
     this.IsUniqueKey = original.IsUniqueKey;
     this.Name = original.Name;
     this.NumericPrecision = original.NumericPrecision;
     this.NumericScale = original.NumericScale;
     this.Size = original.Size;
 }
Example #2
0
 public ColumnListViewItem(Microsoft.Matrix.Packages.DBAdmin.DBEngine.Column column)
     : base(column.Name)
 {
     this._column = column;
 }
Example #3
0
 public ColumnListViewItem(Microsoft.Matrix.Packages.DBAdmin.DBEngine.Column column, bool readOnly)
 {
     this._column = column;
     this._column.IsReadOnly = readOnly;
     this.Refresh();
 }
Example #4
0
 private Column[] GetColumns()
 {
     int count = this._columnsListView.Items.Count;
     Column[] columnArray = new Column[count];
     for (int i = 0; i < count; i++)
     {
         columnArray[i] = ((ColumnListViewItem) this._columnsListView.Items[i]).Column;
     }
     return columnArray;
 }
Example #5
0
 public abstract void UpdateColumns(Column[] newColumns);
Example #6
0
 public virtual bool IsEquivalentTo(Column other)
 {
     return (((((this.AllowNulls == other.AllowNulls) && (this.DataType == other.DataType)) && ((this.IsIdentity == other.IsIdentity) && (this.IsRowGuid == other.IsRowGuid))) && (((this.Name == other.Name) && (this.NumericPrecision == other.NumericPrecision)) && (this.NumericScale == other.NumericScale))) && (this.Size == other.Size));
 }
Example #7
0
 public abstract Table Add(string name, Column[] columns);
Example #8
0
 public ColumnListItem(Microsoft.Matrix.Packages.DBAdmin.DBEngine.Column column)
 {
     this._column = column;
 }