Beispiel #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;
 }
Beispiel #2
0
 public ColumnListViewItem(Microsoft.Matrix.Packages.DBAdmin.DBEngine.Column column)
     : base(column.Name)
 {
     this._column = column;
 }
Beispiel #3
0
 public ColumnListViewItem(Microsoft.Matrix.Packages.DBAdmin.DBEngine.Column column, bool readOnly)
 {
     this._column = column;
     this._column.IsReadOnly = readOnly;
     this.Refresh();
 }
Beispiel #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;
 }
Beispiel #5
0
 public abstract void UpdateColumns(Column[] newColumns);
Beispiel #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));
 }
Beispiel #7
0
 public abstract Table Add(string name, Column[] columns);
Beispiel #8
0
 public ColumnListItem(Microsoft.Matrix.Packages.DBAdmin.DBEngine.Column column)
 {
     this._column = column;
 }