Esempio n. 1
0
 private void setDataGridFunctions()
 {
     if (!Utils.IsDbEmbedded(GetServer().db_type))
     {
         dataGridViewFunctions.DataSource = DbDataHelper.getDataTableData(GetSqlConnection(),
                                                                          new SqlBuilderFactory(GetServer()).Create(GetSqlConnection().Database).GetFunctions());
     }
 }
Esempio n. 2
0
 private void setDataGridViewPKs()
 {
     if (Utils.IsDbEmbedded(GetServer().db_type))
     {
         sqlbox.commons.DbType type = Utils._convert(GetServer().db_type);
         if (type == sqlbox.commons.DbType.SQLITE)
         {
             dataGridViewPKs.DataSource = SqliteHelpers.GetDatabasePrimaryKeysDataSource(GetServer(), GetSqlConnection());
         }
     }
     else
     {
         dataGridViewPKs.DataSource = DbDataHelper.getDataTableData(GetSqlConnection(),
                                                                    new SqlBuilderFactory(GetServer()).Create(GetSqlConnection().Database).getDatabasePrimaryKeys());
     }
 }
Esempio n. 3
0
 private void setDatagridViews()
 {
     dataGridViewView.DataSource = DbDataHelper.getDataTableData(GetSqlConnection(),
                                                                 new SqlBuilderFactory(GetServer()).Create(GetSqlConnection().Database).GetAllViews());
 }