Click here to Skip to main content
15,919,613 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to convert "1.45" string in c# to input parameter for LinQ to SQL real Type?
Posted

1 solution

You can use SqlFunctions.StringConvert()[^].
See this:
C#
SqlFunctions.StringConvert((double) Table1.Field1)


Also check : SQL-CLR Type Mapping[^]


--Amit
 
Share this answer
 
Comments
ridoy 7-Jun-13 1:43am    
+5
_Amy 7-Jun-13 1:44am    
Thank You. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900