LINQ - SubmitChanges()

Discussion in 'ASP .Net' started by Mike Gleason jr Couturier, Mar 2, 2009.

  1. Hi,

    I want to send notifications by email when specific actions occur in the
    database...

    But I can't send the email after calling InsertOnSubmit() because
    SubmitChanges() might fail...

    Do I need to keep track myself of every InsertOnSubmit in a list and then
    process this list if SubmitChanges() succeed? What if the actions aren't the
    same for each InsertOnSubmit()? (ie. send email or insert a record in a
    table or delete a file or whatever) It's seems an ugly non-OO solution.

    I want to hear from you!

    Thanks
     
    Mike Gleason jr Couturier, Mar 2, 2009
    #1
    1. Advertising

  2. Ok I said "send email" but it can be any business rules that must
    be done after a successful commit to the database (for any entity)...
     
    Mike Gleason jr Couturier, Mar 4, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris

    Linq

    Chris, Jan 7, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    463
    Mark Fitzpatrick
    Jan 8, 2007
  2. Chris

    C# 3 and LINQ

    Chris, Jan 12, 2007, in forum: ASP .Net
    Replies:
    7
    Views:
    647
    bruce barker
    Jan 14, 2007
  3. shapper

    LINQ - Need Advice

    shapper, Apr 28, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    355
    Teemu Keiski
    Apr 28, 2007
  4. John Bailo
    Replies:
    0
    Views:
    315
    John Bailo
    Jun 12, 2007
  5. George

    Linq or not Linq

    George, Nov 4, 2008, in forum: ASP .Net
    Replies:
    4
    Views:
    361
    Mike Gleason jr Couturier
    Nov 5, 2008
Loading...

Share This Page