Re: Generic Data Access design problems
From: Radostin Gerchev (gerchev)
Date: 06/08/04
- Next message: Corey Wirun: "Tool to create schema for typed DataSet?"
- Previous message: gerry: "SqlDataAdapter CommandText Size limitations ?"
- In reply to: David Browne: "Re: Generic Data Access design problems"
- Next in thread: Mike: "Re: Generic Data Access design problems"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Corey Wirun: "Tool to create schema for typed DataSet?"
- Previous message: gerry: "SqlDataAdapter CommandText Size limitations ?"
- In reply to: David Browne: "Re: Generic Data Access design problems"
- Next in thread: Mike: "Re: Generic Data Access design problems"
- Messages sorted by: [ date ] [ thread ]