Covariant Return on <blah>Command in DataAdapters

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jehugaleahsa@gmail.com

    #1

    Covariant Return on <blah>Command in DataAdapters

    Hello:

    Does anyone know how library implementors are writing Adapters so that
    the UpdateCommand, InsertCommand, SelectCommand and DeleteCommand
    properties are returning their library Specific command classes?

    I am currently writing my own library and would like to emulate. Help?

    FYI, my adapter is meant to hide which library I am using underneathe
    (Oracle, MS Sql, MySql) without losing the ability to detect
    RowUpdating/RowUpdated events and some of the other not-so-vendor-
    specific members. Does anyone have any clue whether the current
    interface structure is made for this? Without having DataAdapter or
    DbDataAdapter as a base class, there is nothing helping out. I am
    currently using IDbDataAdapter.

    Thanks,
    Travis

  • Jon Skeet [C# MVP]

    #2
    Re: Covariant Return on &lt;blah&gt;Com mand in DataAdapters

    jehugaleahsa@gm ail.com <jehugaleahsa@g mail.comwrote:
    Does anyone know how library implementors are writing Adapters so that
    the UpdateCommand, InsertCommand, SelectCommand and DeleteCommand
    properties are returning their library Specific command classes?
    Explicit interface implementation, basically. I've got to nip off to
    make the dinner now, so don't have time to go into details, but
    hopefully that'sll help...

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

    Comment

    Working...