Re: Cast IDataAdapter
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Sun, 29 May 2005 07:44:13 +0100
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
.
- Follow-Ups:
- Re: Cast IDataAdapter
- From: Bud James via DotNetMonster.com
- Re: Cast IDataAdapter
- References:
- Cast IDataAdapter
- From: Bud James via DotNetMonster.com
- Re: Cast IDataAdapter
- From: Jon Skeet [C# MVP]
- Re: Cast IDataAdapter
- From: Bud James via DotNetMonster.com
- Re: Cast IDataAdapter
- From: Jon Skeet [C# MVP]
- Re: Cast IDataAdapter
- From: Bud James via DotNetMonster.com
- Cast IDataAdapter
- Prev by Date: Re: Cast IDataAdapter
- Next by Date: Re: Cast IDataAdapter
- Previous by thread: Re: Cast IDataAdapter
- Next by thread: Re: Cast IDataAdapter
- Index(es):
Relevant Pages
|