Dataset for customizable project settings??
-
Hello! I am writing a Windows service that requires various user-defined settings in order to work. The solution uses multiple class libraries which are all linked with these user-defined settings. A coworker suggested that I use a dataset to do this, but being new to C#, I'm not exactly sure how I would go about doing this. I think I get the concept of a dataset, but I don't particularly understand how the service would know that the settings were changed after the service has been built, installed, and started. The searches I've done today haven't really given me any relevant information, and I was hoping that somebody could point me in the right direction with a source or suggestion? Any help would be greatly appreciated :)
-
Hello! I am writing a Windows service that requires various user-defined settings in order to work. The solution uses multiple class libraries which are all linked with these user-defined settings. A coworker suggested that I use a dataset to do this, but being new to C#, I'm not exactly sure how I would go about doing this. I think I get the concept of a dataset, but I don't particularly understand how the service would know that the settings were changed after the service has been built, installed, and started. The searches I've done today haven't really given me any relevant information, and I was hoping that somebody could point me in the right direction with a source or suggestion? Any help would be greatly appreciated :)
Well i realy dont get your question clearly maybe this could help you: www.codersource.net/csharp_dataset_better_use.html[^] www.codersource.net/codersource_dot_net.html[^] msdn.microsoft.com/en-us/library/system.data.dataset www.csharphelp.com/archives/archive236.html [^] have fun bye... :-D
-
Hello! I am writing a Windows service that requires various user-defined settings in order to work. The solution uses multiple class libraries which are all linked with these user-defined settings. A coworker suggested that I use a dataset to do this, but being new to C#, I'm not exactly sure how I would go about doing this. I think I get the concept of a dataset, but I don't particularly understand how the service would know that the settings were changed after the service has been built, installed, and started. The searches I've done today haven't really given me any relevant information, and I was hoping that somebody could point me in the right direction with a source or suggestion? Any help would be greatly appreciated :)
The standard methodology for application settings since .Net 2.0 is pretty good. There are several good articles on their use here on CP, search on 'User Settings' or 'Application Settings'. Also check out the MSDN entries on the same topics, V.G. However, I have little experience with Windows services, and am not aware of how they interact with either datasets or application settings files. Whatever approach you take remember that a dataset is an in-memory representation of data, which can incidentally be read from a database or an XML file (Application Settings == *.config == XML). I would have thought that keeping the memory footprint down would be a good idea for a Windows Service. Sorry I cannot be of more help, but hope this gives you some ideas. :)
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”
-
The standard methodology for application settings since .Net 2.0 is pretty good. There are several good articles on their use here on CP, search on 'User Settings' or 'Application Settings'. Also check out the MSDN entries on the same topics, V.G. However, I have little experience with Windows services, and am not aware of how they interact with either datasets or application settings files. Whatever approach you take remember that a dataset is an in-memory representation of data, which can incidentally be read from a database or an XML file (Application Settings == *.config == XML). I would have thought that keeping the memory footprint down would be a good idea for a Windows Service. Sorry I cannot be of more help, but hope this gives you some ideas. :)
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”
Thank you both for your responses. The resources and general information you gave will keep me busy and are a great starting point. Thanks so much!