R
Radostin Gerchev
Hi,
Every data adapter implementation (those in the framework and several other)
that i know has RowUpdating and RowUpdated events.Why aren't they in a base
class or interface, e.g. IDbDataAdapter or DbDataAdapter? Right now it's
pita to register a listener for them in a generic database layer - one have
to cast to a specific adapter.
I don't understand also the need for both common interface and base class
(IDbDataAdapter and DbDataAdapter). The other data-related classes just
implement an interface - IDbCommand, IDataReader, IDbConnection ..., why ?
I have similar design issues with all the CommandBuilders around - a bunch
of classes with identical signature derived from .... Component and not
implementing a common interface, why? The good news here is that
CommandBuilder is useless anyway except in the most trivial cases so not a
big problem.
Every data adapter implementation (those in the framework and several other)
that i know has RowUpdating and RowUpdated events.Why aren't they in a base
class or interface, e.g. IDbDataAdapter or DbDataAdapter? Right now it's
pita to register a listener for them in a generic database layer - one have
to cast to a specific adapter.
I don't understand also the need for both common interface and base class
(IDbDataAdapter and DbDataAdapter). The other data-related classes just
implement an interface - IDbCommand, IDataReader, IDbConnection ..., why ?
I have similar design issues with all the CommandBuilders around - a bunch
of classes with identical signature derived from .... Component and not
implementing a common interface, why? The good news here is that
CommandBuilder is useless anyway except in the most trivial cases so not a
big problem.