예제 #1
0
 private void PopulateColsFromSrc()
 {
     RainstormStudios.Data.ColumnParamsCollection srcCols = ((frmDataImport)this.FindForm()).DataSource.DataTarget._cols;
     foreach (RainstormStudios.Data.ColumnParams col in srcCols)
     {
         this._cols.Add((RainstormStudios.Data.ColumnParams)col.Clone());
     }
 }
        internal void SetParent(ColumnParamsCollection parent)
        {
            if (parent != null && this._parent != null && this._parent != parent)
            {
                throw new Exception("This ColumParams object already belongs to another SqlTableParams columns collection.");
            }

            this._parent = parent;
        }
 public ColumnParams(string colName, SqlDbType dataType, int fieldSize, int ordinalPos)
 {
     this._colName   = colName;
     this._dataType  = dataType;
     this._fieldSize = fieldSize;
     this._colOrd    = ordinalPos;
     //this.OrdinalChanged = null;
     this._isNullable = false;
     this._isIdent    = false;
     this._idSeed     = -1;
     this._idIncr     = -1;
     this._defValue   = null;
     this._parent     = null;
 }
 //***************************************************************************
 // Class Constructors
 //
 private SqlTableParams()
 {
     this._cols   = new ColumnParamsCollection(this);
     this._dbName = "master";
 }