|
I'm coming from ASP.NET and I haven't done much of anything with Windows Forms. I'm just wondering how the data layer is handled, more specifically something like the connection string.
For instance, in ASP.NET I would store the connection string in the web.config. In each of my methods in my datalayer I would access that connection string through ConfigurationSettings.AppSettings. What is the equivalent in Windows Forms? Do you store the connection string in a config file, or do you make a constant at the class level? I would just like to know the best practice.
Thanks. |