sql server - Is it possible to convert a C# string to a SqlChars? -


i'm creating unit tests piece of code returns sqlgeography type. mock sqlgeography column i'd use sqlgeography.stlinefromtext create line string. problem stlinefromtext takes sqlchars parameter. know how convert c# string sqlchars?

new sqlchars(new sqlstring(text)); 

Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -