I've a connection string saved to Properties.Settings.Default, i need to use an sql connection in all classes without having to declare it everytime, so how should it be declared?
Properties.Settings.Default
It can be done with the help of STATIC variable in any class
2.1m questions
2.1m answers
60 comments
57.0k users