LinqToDb update SQL
Options
I would like to update the database. According to documentation and samples, I have to simply call SubmitChanges();
There is no SubmitChanges() when I use the LinqToDb providers.
Using:
DataContext dataContext = this;
..
dataContext.SubmitChanges();
is also not possible. The type DataContext of LinqToDb isn't compatible with 'this'.
Any idea? Thanks for your help.
Helmut
There is no SubmitChanges() when I use the LinqToDb providers.
Using:
DataContext dataContext = this;
..
dataContext.SubmitChanges();
is also not possible. The type DataContext of LinqToDb isn't compatible with 'this'.
Any idea? Thanks for your help.
Helmut
Comments
-
LinqToDb is different from LINQ to SQL. There is no SubmitChanges method - you just call Insert/Delete/Update.
A tutorial on how to use it is here (see "Insert", "Update" and "Delete"):
https://github.com/linq2db/linq2db
-
Thanks Joe,
now I've understand it.