Esempio n. 1
0
        public DatabaseGetData(ConnectionConfig config, DatabaseInterface database, List <string> TableName)
        {
            _connectionConfig = config;
            _database         = database;


            sql = new SelectDBCommandBuilder((DatabaseType)Enum.Parse(typeof(DatabaseType), config.DBType));

            if (TableName.Count > 0)
            {
                sql.AddSelectTable(TableName);
            }
        }
Esempio n. 2
0
        public DatabaseGetData(ConnectionConfig config, DatabaseInterface database, String
                               TableName)
        {
            _connectionConfig = config;
            _database         = database;

            sql = new SelectDBCommandBuilder((DatabaseType)Enum.Parse(typeof(DatabaseType), config.DBType));

            if (!String.IsNullOrEmpty(TableName))
            {
                sql.AddSelectTable(TableName);
            }
        }