Keep generated DataSet internal

  • Thread starter Thread starter C P
  • Start date Start date
C

C P

I've got a C# strongly-typed DataSet that is being auto-generated from an
XSD schema I've created. I see that I can change the access modifier for
the generated DataSet class to "internal". However, it gets set back to
:public" any time I alter my schema (causing the DataSet to be regenerated).
Is there any setting that I can tweak so that the generated DataSet will
always be internal by default?

Thanks,
Chris
 
hi chris
the typed dataset is generated by VS according to the xsd file that you
have , so every time you change the xsd file , the dataset is regenerated "
with public as default access modifier " . hope that explains it
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top