I have a problem with committing changes in LinqPad. I am using Oracle database over IQ driver in LinqPad. I can retrieve data but I don\'t know how to submit changes to databas
Change Language in LINQPad to "C# Program" and use the following code
void Main()
{
var p1 = Person.Single(x => x.Id == 1);
p1.Name = "Test";
SubmitChanges();
}
If you are using an EF Context, then you need to call SaveChanges()
If you are using a Linq2Sql context, then you need to call SubmitChanges()