c# - what to check for when a datareader might not have a particular column? -


I am doing a redundancy test, but when I am doing, I'm getting an exception to the limit:

  If (myReader ["column1"]! = Null) {}  

under certain conditions that column will not exist, why not a redundant investigation doing work?

Check to see if the column already exists

  For (int i = 0; i  

Comments

Popular posts from this blog

MySql variables and php -

php - Laravel - Overriding a resource route into a different route filter group -

url rewriting - How to implement the returnurl like SO in PHP? -