ClassFromConfig is code generation utility that creates a static class from your Web.config or App.config. It privides an easy access to appSettings and connectionStrings, as well as Custom Configuration Sections.
It'll save you time when working with large appSettings section and when creating custom config sections
There is no documentation. Trying to get this, results in one around and around sourceforge in circles. I tried /? for help and when I used the /cs for custom sections there was nothing extra generated. Could be a great asset, but if you cannot find out how to use it and as the examples cannot be accessed its usefulness is greatly diminished. I got s simple class generated but nothing that good that I could not simply handle myself. Its the custom sections that I am particulary interested in and have been giving me grief.
Finally a new version is ready! A lot of improvements have been made: - Rewritten the code generator engine to be more managable. - Added lost of tests. - Added "options file" support which enables to store ConfigFromClass settings in project .config. - Added ability to update config and register custom sections. - Added support for default collections - Added ability to exclude certain sections from being generated. - Added option to disable connectionString wrapper - Added option to disable appSettings wrapper - Added ability to load comments from config file as comments to the generated properties. - Generated properties will now have info in the comments about which key it corresponds to. It's recommended to upgrade any earlier versions to this version.
- Rewritten the code generator engine to be more managable. - Added lost of tests. - Added "options file" support which enables to store ConfigFromClass settings in project .config. - Added ability to update config and register custom sections. - Added support for default collections - Added ability to exclude certain sections from being generated. - Added option to disable connectionString wrapper - Added option to disable appSettings wrapper - Added ability to load comments from config file as comments to the generated properties. - Generated properties will now have info in the comments about which key it corresponds to. - Misc bug fixes.
Happy New Year! I will be releasing a new version very soon - with lots of improvmentes. Check "Tracker > Feature Requests" and "Tracker > Bugs" for details of what's to come.
ClassFromConfig is now featured on DotNetPerls (http://dotnetperls.com/Content/Cache-Settings-ASPNET.aspx) Thanks, Sam!
Release v1.3.1: - Added ability to load linked config files (via configSource attribute). - Node collection can now be any tag (not limited to "<add ...", can use "<item ...", etc.) - must be at least 2 in the config to recognise it as a collection. - Documentation and Source Code links changed to sourceforge.net
What's new: - Added ability to load linked config files (via configSource attribute). - Node collection can now be any tag (not limited to "<add ...", can use "<item ...", etc.) - must be at least 2 in the config to recognise it as a collection. Download it from http://sourceforge.net/project/showfiles.php?group_id=228115&package_id=276238&release_id=600756
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use
Thanks for your rating!
Would you also like to write a review?
Thanks for your review!
Get credit for your review by logging in via OpenID. Click your account provider: