예제 #1
0
        private string name; // Name for logging

        // Detect database, schema, and table; some from table_name, some from SQL connection
        public BingoIndexID(SqlConnection connection, string table_name)
        {
            table_id = BingoSqlUtils.GetTableObjectID(connection, table_name);

            string database = null, schema = null, table = null;

            parseTableName(table_name, ref database, ref schema, ref table);

            if (database == null)
            {
                database = connection.Database;
            }
            database_id = BingoSqlUtils.GetDatabaseID(connection, database);

            name = table_name;
        }