private void SetColumns(DbConnection connection, TableInfo table)
        {
            var showColumnsCommand = _factory.CreateShowColumnsCommand(table.Name);

            showColumnsCommand.Connection = connection;
            table.Columns = showColumnsCommand.ExecuteList().Select(x => Convert.ToString(x[0])).ToArray();
        }
Exemplo n.º 2
0
        private void SetColumns(DbConnection connection, TableInfo table)
        {
            var showColumnsCommand = DbFactory.CreateShowColumnsCommand(table.Name);

            showColumnsCommand.Connection = connection;

            table.Columns = ExecuteArray(showColumnsCommand);
        }