Wrox Programmer Forums
|
C# 2012/5.0 General Discussion Discussions about the C# 2012 language and tool not related to any specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2012/5.0 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 14th, 2015, 11:34 AM
Authorized User
 
Join Date: Jun 2012
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.





Similar Threads
Thread Thread Starter Forum Replies Last Post
VS 2013? RKevinBurton BOOK: Professional ASP.NET MVC 4 1 October 8th, 2015 01:17 AM
POSTgreSql and VS 2013 Deaf Smith .NET 4.5.1 and Visual Studio 2013 General Discussions 3 June 16th, 2015 05:45 PM
Need help with Chapter 4 in VS 2013 craigrow BOOK: Professional ASP.NET MVC 5 2 January 7th, 2015 04:21 AM
sharepoint 2013 sorin ASP.NET 4.5.1 General Discussion 0 August 24th, 2014 06:50 PM
Book 4.5 work with VSEW 2013 bogdan BOOK: Beginning ASP.NET 4.5 : in C# and VB 1 April 11th, 2014 03:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.