I have an .mdf file which I'm trying to add a record to, using linq in C#. My code is:
dbDataContext context = new dbDataContext();
book b = new book();
b.title = "Test Book";
b.isbn = "123789";
context.books.InsertOnSubmit(b);
context.SubmitChanges();
When this code runs, the record is not inserted, and I get no error messages. If I use the database explorer to add a record with the selfsame data, it works.
What's going on?