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 -

javascript - Preserving URL fragment through CAS sign-on -

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