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(); }
private void SetColumns(DbConnection connection, TableInfo table) { var showColumnsCommand = DbFactory.CreateShowColumnsCommand(table.Name); showColumnsCommand.Connection = connection; table.Columns = ExecuteArray(showColumnsCommand); }