Commenting a Typed DataSet

  • Thread starter Thread starter John Mathiasen
  • Start date Start date
J

John Mathiasen

When using Typed DataSets, is there a way to attach comments to the
schema that can be persisted to the c# code thus allowing the XML
documentation to be created for the properties (fields) in the
dataset? I realize that I could insert the comments myself into the
..cs files, but my concern is that if the schema is updated I will
loose all the comments.

Please advise.

Thanks,
John Mathiasen
(e-mail address removed)
 
Hi John,

Based on my understanding, you need to persist the comment you made in .cs
file generated by Typed DataSet. If there's any misunderstanding, please
point it out.

As far as I know, we cannot do this by modifying the .cs file. Because each
time you modify the schema, the .cs file will be re-generated. This is by
design. The only way I know, is to sub-class it and implement every
interface by calling the method in base accordingly. And then write
comments in subclass. But it really takes a lot of time.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Back
Top