How would I get SQL Server stored procedure parameter types to their equivalent C# types? -
i'm running unknown sql server stored procedures @ runtime can query sql output parameter types (varchar, int, etc). using ado or dapper, how equivalent data types in c#? values dynamic parameters in dapper, i'd able map them specific c# types.
my use case running stored procedure , and creating class hold output data in respective c# data types, known @ runtime. have found query allows me see sql server data types, , i've heard orms i'm not sure how or if can used case.
here mapping of sql server data types .net
https://msdn.microsoft.com/en-us/library/cc716729(v=vs.110).aspx
Comments
Post a Comment