C
C P
Background: I'm net to .NET and using C#.
I see that I can create an .xsd file at VS.NET will create a corresponding
C# class for me that is a corresponding dataset to my .xsd schema. This
seems perfect for the class I want to construct. I'd like to have consumers
of my Dataset class be able to access my class as a Dataset. I know this
can all be done. However, I'd like to extend the Dataset class that is
autogenerated from my schema to add some functionality. Is there a safe way
to do this? Or, will any change to the DataSet's schema cause the
underlying class to be re-written and thus lose all my code? I suppose I
could add my code to a subclass of the DataSet class... Is what I'm
attempting a bad idea? Is there a better way to approach this?
Thanks,
Chris
I see that I can create an .xsd file at VS.NET will create a corresponding
C# class for me that is a corresponding dataset to my .xsd schema. This
seems perfect for the class I want to construct. I'd like to have consumers
of my Dataset class be able to access my class as a Dataset. I know this
can all be done. However, I'd like to extend the Dataset class that is
autogenerated from my schema to add some functionality. Is there a safe way
to do this? Or, will any change to the DataSet's schema cause the
underlying class to be re-written and thus lose all my code? I suppose I
could add my code to a subclass of the DataSet class... Is what I'm
attempting a bad idea? Is there a better way to approach this?
Thanks,
Chris