How can I use my own connection class with a strongly typed dataset?
        Posted  
        
            by Maslow
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Maslow
        
        
        
        Published on 2009-06-20T16:14:36Z
        Indexed on 
            2010/05/08
            18:48 UTC
        
        
        Read the original article
        Hit count: 386
        
I have designed a class with sqlClient.SqlCommand wrappers to implement such functionality as automatic retries on timeout, Async (thread safety), error logging, and some sql server functions like WhoAmI.
I've used some strongly typed datasets mainly for display purposes only, but I'd like to have the same database functionality that I use with my class. Is there an interface I can implement or a way to hook my command/connection class into the dataset at design or runtime?
Or would I need to somehow write a wrapper for the dataset to implement these types of functions? if this is the only option could it be made generic to wrap anything that inherits from dataset?
© Stack Overflow or respective owner