mattmc3 submitted these extension methods

  • GetNext

    Gets the next occurrence day of the week specified.
    VB System.DateTime MattMc3
  • GetTrackedObjects

    A Linq-to-SQL DataContext does change tracking for all the objects it creates. This is so that it knows what to insert/update when you call .SubmitChanges(). Unfortunately, the DataContext doesn't supply that information to the world, but it's uber helpful to know at times, especially if you want to create a DAL that enforces writing to a changelog on every DB commit. This method examines the gruesome innards of the DataContext and gives you the
    VB System.Data.Linq.DataContext MattMc3

 

;