I've been playing around with the Quickstarts that accompany the Configuration Management Application Block, and have found that the titles of these are very misleading! I normally just get the tool and start using it (they're not at all taxing) - but this time I thought I'd have a quick squizz at the Quickstarts and see what they could offer. There are 3 of them, namely: Hashtable, Read, and Write.
Naturally I assumed that the “Read” quickstart was for read-only configuration data, and “Write” was for read/write configuration data. But alas, I was wrong! This is what they are really for:
Read: This is for a read-only configuration section, but the configuration data itself is read/write.
Write: This is for a read/write configuration section, and the configurationdata is read/write.
The configuration section is defined in your app.config file, but the configuration data itself is not necessarily stored there. I tried creating an app that used the SqlStorage provider to persist that data. Obviously the table in SQL was empty to start off with, so I naturally started the “Write” quickstart to write data to it. It kept giving hassles, so I eventually gave up. I opened the “Read” quickstart and modified it here and there, and it wrote to the SQL table.
Yeah, yeah... so this is all basic stuff. But my point is that a quickstart named “Read” is a little misleading. Well... all is fine now though! Will be posting some stuff back here once I've mastered the block!