public void Initializa() { test = new BookDao(); iBook = new Books() { //BOOK_ID = 0, BookName = "ibook", BookAuthor = "ia", BookPublisher = "ip", BookNote = "insert_test", BookBoughtDate = "2018-08-01", BookClassId = "BK" }; argI = new BookSearchArg() { BookName = "ibook", BookClassId = "BK", BookKeeper = "", BookCodeId = "A" }; argEmpty = new BookSearchArg() { BookName = "", BookClassId = "", BookKeeper = "", BookCodeId = "" }; bookUpdateData = new BookUpdateData() { BookName = "ubook", BookAuthor = "ua", BookPublisher = "up", BookNote = "update_test", BookBoughtDate = "2018-08-01", BookCodeId = "A", BookKeeper = "0003" }; }
/// <summary> /// 新增員工 /// </summary> /// <param name="book"></param> /// <returns>員工編號</returns> public int InsertBook(eLibrary.Model.Books book) { return(bookDao.InsertBook(book)); }