Re: Cast IDataAdapter



Bud James via DotNetMonster.com <forum@xxxxxxxxxxxxxxxxx> wrote:

<snip>

> my original post didn't include a no parameter contructor but this should
> give a more direct example of what i'm trying to get at. i really don't
> want my 35 or 105 or 5 classes to have explicit information of "database
> types"

So why do you need to be able to cast dynamically in order to achieve
that? You haven't shown what difference it would make to DBTalker.

I'd suggest just a set of "if" statements (either using the type you've
fetched, or as set of "is" comparisons). You may well need to create
the data adapter slightly differently for different providers anyway.

--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
.



Relevant Pages

  • Re: Black-drop - is it real?
    ... Still amazed at what I can see with the scope, ... no idea why) is the one showing the trees. ... I believ that I can see it in the picture I mentioned in the original post. ...
    (sci.astro.amateur)
  • Re: The Middle Ground.
    ... Are we reading the same newsgroup? ... for posterity as a monument to airheads everywhere". ... I notice you did not put up your original post, which, on reflection, ...
    (talk.origins)
  • Re: The Middle Ground.
    ... Are we reading the same newsgroup? ... USENET quoting customs as a monument to airheads everywhere". ... I notice you did not put up your original post, which, on reflection, ...
    (talk.origins)
  • Re: Is i = i++; bad style?
    ... Richard Bos wrote: ... snip ... ... What an original post! ... No point searching Google or the C FAQ to ...
    (comp.lang.c)
  • Re: [OT] Re: whats the best hash function?
    ... > [snip 14 lines of code for hash function] ... > None needed since I said nothing that demands an apology. ... > the original post that I would not have replied as I did. ... posted a reply to a post about what is the best hash function by ...
    (comp.lang.c)