Shawn Wildermuth has a great blog entry on annotations in your XSD that affects the code generation in typed datasets. Fabulous stuff, especially the null value handling!
1 Comment
I'd like to change the code generation to replace all Friend methods and properties with Public. Can you do this with the annotations? I doesn't look like it...
Of course, the question that'll come back is "why?". Because in order to write reusable code, I need to work at the datatable and datarow level of my strongly typed datasets to do some work (getting column names, etc). Given that I'm using Microsoft prescribed design patterns and layering my application, and given that we've decided to use datasets to transport data between layers (another big topic there) the Datasets need to be in a layer accessible to all other layers - we call it Common. Now, the code generated as Friend accessible is no longer accessible to my other projects/layers so I find myself doing a search and replace 'Friend' to 'Public' whenever the dataset needs regenerating.
What irks me is that if my application wasn't layered, I wouldn't have this problem. Any ideas?