p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   C# 2012/5.0 General Discussion (http://p2p.wrox.com/c-2012-5-0-general-discussion-714/)
-   -   VS 2013 C# and copy statements (http://p2p.wrox.com/c-2012-5-0-general-discussion/94711-vs-2013-c-copy-statements.html)

Deaf Smith July 14th, 2015 12:34 PM

VS 2013 C# and copy statements
I'm an old COBOL programmer...

Well when useing a SQL read in C#, I have lots of SQL code sniplets.

Is there a way to copy these as needed into a Form's CS file?


cmd.CommandText = "Select...";

is there a way to say cmd.CommandText = "C:/codelib/code1.cs"; ?

And have a library of code snipplets with whatever SQL statements one needs in a folder.

Yes I know I can make another class and do it that way but I wondered if this would work?


All times are GMT -4. The time now is 01:13 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.