p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   C# 2012/5.0 General Discussion (http://p2p.wrox.com/forumdisplay.php?f=714)
-   -   VS 2013 C# and copy statements (http://p2p.wrox.com/showthread.php?t=94711)

Deaf Smith July 14th, 2015 11:34 AM

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?

Example:

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?

Thanks.


All times are GMT -4. The time now is 10:09 PM.

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