Closed abe545 closed 9 years ago
Ugh, the SqlDataReader
's implementation of GetOrdinal
throws this exception when the name isn't found. This is not documented, so it looks like I'm going to have to go the other way: iterate over the FieldCount
and call GetName
to match the properties of the model.
I thought I had tests for this, but they apparently aren't catching it.