I am newbie in C#. i am programming a project with several Form. what is the best way to define sqlconnection string in a way that if i want to change it , i wouldn't change it in every form.
should create class and define the connection string in it and then get it every time i need it. in that case i change it in the one cls file if i have to change it?
what is the best way?
and one more question is it better to program the openning connection string and the rest or using the ready to use sqlconnection component in .NET?
thank you
should create class and define the connection string in it and then get it every time i need it. in that case i change it in the one cls file if i have to change it?
what is the best way?
and one more question is it better to program the openning connection string and the rest or using the ready to use sqlconnection component in .NET?
thank you