Anybody got a C# function that maps the SQL datatype of a column to its CLR equivalent?

Posted by Chris McCall on Stack Overflow See other posts from Stack Overflow or by Chris McCall
Published on 2009-06-29T13:30:50Z Indexed on 2010/03/20 2:11 UTC
Read the original article Hit count: 394

Filed under:
|

I'm sitting down to write a massive switch() statement to turn SQL datatypes into CLR datatypes in order to generate classes from MSSQL stored procedures. I'm using this chart as a reference. Before I get too far into what will probably take all day and be a huge pain to fully test, I'd like to call out to the SO community to see if anyone else has already written or found something in C# to accomplish this seemingly common and assuredly tedious task.

© Stack Overflow or respective owner

Related posts about c#

Related posts about datatypes