In C# VS2008 how to replace new SqlParameter("@values", SqlDbType.SomeType, 1500)) to ("@values", Sq

Posted by CodeYun on Stack Overflow See other posts from Stack Overflow or by CodeYun
Published on 2010-03-19T13:42:37Z Indexed on 2010/03/19 13:51 UTC
Read the original article Hit count: 184

Filed under:
|

In C# VS2008 how to replace

new SqlParameter("@Description", SqlDbType.NChar, 1500)

or

new SqlParameter("@IsRequired", SqlDbType.Bit)

to

"@Description", SqlDbType.NChar, 1500

or

"@IsRequired", SqlDbType.B

the idea is to remove new SqlParameter() and leave the parameters inside it.

I have thounds of lines code have this pattern. I just want to pass compile by using some regular expression.

© Stack Overflow or respective owner

Related posts about c#

Related posts about regex