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)
            {
            }
        }
Exemple #2
0
 partial void UpdateBookAppDatebase(BookAppDatebase instance);
Exemple #3
0
 partial void DeleteBookAppDatebase(BookAppDatebase instance);
Exemple #4
0
 partial void InsertBookAppDatebase(BookAppDatebase instance);