none
Do not save changes to the database RRS feed

  • Question

  •              LINQDataContext db = new LINQDataContext();

                Faculty fa = new Faculty();
                fa.IdFaculty = int.Parse(TxtId.Text);
                fa.FNameFaculty = TxtFName.Text;
                fa.LNameFaculty = TxtLName.Text;
                fa.IdEducationGroup = int.Parse(CbEducationGroup.SelectedValue.ToString());
                db.Faculties.InsertOnSubmit(fa);
                db.SubmitChanges();

    • Moved by Barry Wang Tuesday, July 15, 2014 9:58 AM
    Sunday, July 13, 2014 11:28 PM

Answers

  • Is this a local database file or a database server? If it is a file, then check your folders. It is possible to have a second database file (a copy made by the system), where data are actually added.

    • Proposed as answer by ErikEJMVP Tuesday, July 15, 2014 2:49 PM
    • Marked as answer by Fred BaoModerator Monday, July 21, 2014 8:47 AM
    Monday, July 14, 2014 5:40 AM

All replies