示例#1
0
        public Query GetAlterColumnQuery(Sql8rServer server, Sql8rDatabase database, Sql8rTable table, Sql8rColumn column)
        {
            string sql   = string.Format(sqlAlterColumn, database.Name, table.GetFullObjectName(), column.Name);
            var    query = new Query(_settings, server.Name, database.Name, sql);

            return(query);
        }
示例#2
0
 public void OpenTable(Query query, Sql8rTable table, bool editable)
 {
     if (_editorPresenter.EditTable(query, table.GetFullObjectName()))
     {
         _dataGridPresenter.OpenTable(query, table, editable);
     }
 }
示例#3
0
        public Query GetAlterColumnQuery(Sql8rServer server, Sql8rDatabase database, Sql8rTable table, Sql8rColumn column)
        {
            //    throw new System.NotImplementedException();
            string sql   = string.Format(sqlAlterColumn, table.GetFullObjectName(), column.Name);
            var    query = new Query(_settings, server.Name, database.Name, sql);

            return(query);
        }
示例#4
0
        public void OpenTable(Query query, Sql8rTable table, bool editable)
        {
            string fileName = table.GetFullObjectName();

            setEditability(editable, !editable);

            bindDataTable(query, table);
            _view.tslDataName.Text = fileName;
        }