コード例 #1
0
        public int AddColumn(string name, string datatype, int length, int scale, int isnull, int tableID, int precision, int isunique)
        {
            IGumruk _iGumruk = new BSGumruk();

            d_b_columns col = new d_b_columns();

            col.name         = name;
            col.length       = length;
            col.scale        = scale;
            col.isnull       = Convert.ToBoolean(isnull);
            col.precision    = precision;
            col.isunique     = Convert.ToBoolean(isunique);
            col.DataType     = datatype;
            col.created_at   = DateTime.Now;
            col.updated_at   = DateTime.Now;
            col.d_b_tablesId = tableID;

            return(_iGumruk.NewColumn(col));
        }