There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Generated XSD to include list of available enum values for a defined type
Firstly just to say that I think this is a great tool!
1) Could add a designer attribute that allows one to specify a list of acceptable values for enum types which can then be used by the code generator to create the appropriate xsd, thereby providing intellisense within config file (assuming generated schema
refenced from config), or better still, infer the values by reflecting the type.
2) Could generate method in configuration section class that allows one to search for a particulate element by xpath expression - (i guess this could also be achieve by use of an extension method). I realize lambda's can be used and can go someway to achieving
the same result as specified above. (Most configuration files I end up working with are very generic, list of key/values which are normally exposed as a NameValueCollection or something unspecific for use in various components).
3) Add ability to have configuration elements implement an interface (for which can be generated automatically by code), just need appropriate attribute added to designer and handling of it's value - this makes TDD simpler. I realize that the classes are generated
as partial classes and thus this could be done manually, but would be better if could generate automatically).
4) Add ability for classes generated to be in separate files (much like as happens with edmx code behind via poco templates for example).
5) Add ability for separation of xsd and class generation by perhaps allowing csd file to have two file generators specified, one for classes and one for xsd. This way people can implement their own T4 templates should they so desire to implement their own
code generation. (This would also need an object model to wrap around the xml model for the csd code-behind - again much in the same way as T4 templates can be used for edmx (entity framework 4) class generation.