1) Fixed an issue with the naming of ToSQLDbType.

1) Fixed an issue with the naming of ToSQLDbType.
2) Fixed a number of exceptions that were thrown (replaced a number of
NullReferenceExceptions with InvalidOperation, etc).
3) Fixed a couple of Streams where Close was being called when it wasn't
necessary.
4) Fixed a couple naming and type issues to make most of the library CLS
compliant (parts that aren't are marked as such).
5) Various other changes to bring code in line with FxCop suggestions.