J
jehugaleahsa
Hello:
Say I were to query the schema tables from a database management
system. Say I got a DataType field that held the string 'VARCHAR2'.
Now, I know that VARCHAR2 associates to System.String. However,
different DBMSs have different types and worse, even some with the
same type turn out to be different .NET types.
I would like DMBS-independent way of getting a .NET type from a
DataType string. Now, I have existing code that gets the .NET type by
using a DataTable. Somehow DataTables have the .NET types. How is this
done? Do the providers implement the conversion themselves?
Any insight or solutions would be greatly appreciated!
Thanks,
Travis
Say I were to query the schema tables from a database management
system. Say I got a DataType field that held the string 'VARCHAR2'.
Now, I know that VARCHAR2 associates to System.String. However,
different DBMSs have different types and worse, even some with the
same type turn out to be different .NET types.
I would like DMBS-independent way of getting a .NET type from a
DataType string. Now, I have existing code that gets the .NET type by
using a DataTable. Somehow DataTables have the .NET types. How is this
done? Do the providers implement the conversion themselves?
Any insight or solutions would be greatly appreciated!
Thanks,
Travis