示例#1
0
 public void CopyValuesToEntity(BookLibrary.Entities.Book dbBook)
 {
     dbBook.Description = this.Description;
     dbBook.Author      = this.Author;
     dbBook.Genre       = this.Genre;
     dbBook.Quantity    = this.Quantity;
     dbBook.Title       = this.Title;
     dbBook.Description = this.Description;
 }
示例#2
0
 public BookModel(BookLibrary.Entities.Book book)
 {
     this.ID          = book.ID;
     this.Author      = book.Author;
     this.Description = book.Description;
     this.Genre       = book.Genre;
     this.Quantity    = book.Quantity;
     this.Title       = book.Title;
 }