protected void Save_Book(object sender, EventArgs e) { BookAppDataDataContext db = new BookAppDataDataContext(); try { BookAppDatebase Book = new BookAppDatebase { BookName = (txtBookName.Text), Writer = (txtWriter.Text), PagesCount = Convert.ToInt32(txtPageCount.Text), Categories = txtCategori.Text }; db.BookAppDatebases.InsertOnSubmit(Book); db.SubmitChanges(); } catch (Exception ex) { } }
partial void UpdateBookAppDatebase(BookAppDatebase instance);
partial void DeleteBookAppDatebase(BookAppDatebase instance);
partial void InsertBookAppDatebase(BookAppDatebase instance);