LINQ - SubmitChanges()

  • Thread starter Thread starter Mike Gleason jr Couturier
  • Start date Start date
M

Mike Gleason jr Couturier

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
 
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)...
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

access @@IDENTIY in LINQ? 1
LINQ 1
LINQ to SQL: Opposite of SubmitChanges() 2
Linq to sql Delete 2
LinqToSQL CancelUpdate 2
LINQ question 5
LINQ and OO 3
Custom Notification System in ASP.Net 2

Back
Top