none
How to extend all the tableadapter classes in a solution? RRS feed

  • Question

  • I believe you can extend each tableadapter class by using partial class.  However, if I need the same extension and I have many datasets, it does not really make sense that I need to create partial class manully for each tableadapter in each dataset.  Is there anyway that I can add the extention that I needed into code generation of tableadapter?

    Thursday, September 13, 2007 2:04 AM

All replies

  • If functionality is shared among multiple TableAdapters then what about creating separate class (not partial one), move all shared functionality there and call it from the partial class for specific TableAdapter?

     

    Thursday, September 13, 2007 11:52 AM
    Moderator