How to i commit changes in LinqPad?

Hello,

I wrote some statements and at the end I'm using SubmitChanges(); I have found on the internet, but there's an error saying
CS0103 The name 'SubmitChanges' does not exist in the current context

Thanks in advance.

Comments

  • Please note, Im using the free edition.
    image
  • Are you using Entity Framework? If so, you need to call SaveChanges() instead of SubmitChanges().
  • this.Update(ef);
    this.Update(contact);

    Used that for the update,
    Thanks for the help. :smile:
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!