In the table from which data is taken, some columns do not allow storage of null . So, in the Debug configuration, all columns of the table table have AllowDBNull = true , and the Release configurations have full compliance with the table schema in the database — some columns have AllowDBNull = false .
Googling did nothing. Can someone tell me the explanation of this behavior, and tell you what other interesting things can hide SqlDataReader?