ASP.NET Hosting

Using Annotations with a Typed DataSet, plus a tip for XML formatting

I had already seen an article about annotations and Typed DataSets some time ago, but I lost the link.
I haven't used this yet, but it surely helps to handle null values and schema changes.

Since Mads talks about it, probably this is a good occasion to tell people it exists, and at the same time add a link here on my weblog so I can find the link back later ;-)

Reference on MSDN

BTW, if you save DataSets as XML, maybe you'd like to have some fields as attributes rather than elements? This one is easy: define the "fields" as attributes (default is element) in the schema editor. Easy, but doesn't always come to mind (to mine at least!) if you're not aware of it.

No Comments