How do you make typed dataset internal

  • Thread starter Thread starter Billy
  • Start date Start date
B

Billy

I have created a typed dataset by dragging on a sql table on to the
designer of the dataset and from there I can change the modifier of the
tableadpater to 'internal' from 'public' thru the properties but how
can I change the modifier of the datatable to 'internal'? It doesn't
have this property. I could change the generated code but obviously i
would rather not.

Regards

Billy
 
Billy,

Webform or ASPNet?. Those have a total different behaviour in Version 2005
with a generated strongly typed dataset

Or do you use version 2002/2003

Cor
 
C# Class library ... i've created test harness using a winform just to
see what is visible but the class library may be used by either; a
webform or a winform.
 
Billy,

Than my idea is that you just can instance it, it is a normal class which
inherits from dataset.

myTypedDatasetClass ds = new myTypedDatasetClass();

Cor
 
Thats correct but I don't want my typed datasets to be visible, the
only way to interact with my class library will be via a public class
'clsController' and it will talk to the typed datasets. If I create a
typed dataset and then drag on a sql table I can only make the
tableadapter hidden but not the datatable ... well not without amending
the generated code, which I am reluctant to do.

Billy
 
I think I've found it ... if you add the typed dataset to a class
diagram, then select the class the 'modifier' property appears in the
property window. If you change this to internal it should change the
generated code accordingly.

Billy
 
Back
Top