Hello,
What is the nicest way to read Database data from reader objecy after making
a SQL query? Do I really need mapper classes with methods like:
// Reader is OleDbDataReader object.
public int GetInt(string column)
{
int data = (reader.IsDBNull(reader.GetOrdinal(column)))
? (int) 0 : (int)reader[column];
return data;
}
or does C#/dotNET provide any elegant solutions for checking null fields
etc. by it's own?
Br,