ADO.NET Typed DataSets

G

Guest

Here is the situation:

I have a web service that creates several reports, rather than exposing a
method for every report I used something similar to the builder pattern, I
pass in an object that inherits from a base class that holds the parameters
for the report and the method calls a custom report builder that builds a
typed DataSet and then returns a Vanilla Dataset that is actually a reference
to a Typed DataSet. Unfortunately when I get the DataSet back and try to cast
it to its original for, I get an InvalidCastException. Is this a bug or is
this the proper behavior for DataSets? I have subclassed other objects and
used them as parameters for Web Services with out any trouble.

Any input on this would be appreciated.
 
C

Cor Ligthert

John,

Maybe you are sending this to the webservice newsgroup, wich was direct my
idea that was a more proper newsgroup for your question.

In my opinion it is better to make crosspost from this messages, than we cal
learn all from the answers, and maybe add the things just where we have a
lack of knowledge however is filled by another one.

Crossposting sending one message to more newsgroups. Which is no problem in
the dotnet newsgroups. Multipost do most of the more regulars hate.

Moreover, now you have the change that in both newsgroups somebody is just
missing a little bit and answers not because of that.

Cor
 

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

Top