Rails has an awesome way of looking up column names and expected datatypes from the DB, alleviating a lot of programming.
I'm trying to build something like this in C#.NET, because we have large tables that are ever changing. I'll be adding parameters like so:
SqlParameter param = new SqlParameter("parametername", *SqlDbType.Int*);
param.Direction = ParameterDirection.Input;
param.Value = 0;
comm.Parameters.Add(param);
Notice the SqlDbType. How can I get that? If I get DataColumns from the DataSet, all I can get is System types like System.string.