Re: Generic Data Access design problems

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Radostin Gerchev (gerchev)
Date: 06/08/04


Date: Tue, 8 Jun 2004 19:30:07 +0300


> This is simply because the different DataAdapters share a ton of
> implementation details. One basic job of the a DataAdapter is to take an
> IDataReader and shove it into a DataSet. The IDataReader implementations
> handles most of the provider-specific stuff, and so you only have to write
> this code once if you put it into the DbDataAdapter base class.

I agree with you, should've formulated my rant more precisely. Ok, let us
have a helper DbDataAdapter class but why not include some common properties
in the interface? Now I have to cast between IDbDataAdapter and
DbDataAdapter to get access to AcceptChangesDuringFill for example.

Best Regards
Radi