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.
|