An extension method for passing a column name to SqlDataReader.GetFieldValue
There are two SqlDataReader.GetFieldValue methods - one that accepts an ordinal value and returns a specific type, and one that accepts a column name but returns an object. Let's try to have the best of both worlds, passing in a column name and getting back a specific type.
Read more
Share