How to submit changes in LinqPad

后端 未结 2 1895
一向
一向 2021-02-02 06:15

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

2条回答
  •  死守一世寂寞
    2021-02-02 06:38

    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();
    }
    

提交回复
热议问题