コード例 #1
0
 public void CopyValuesToEntity(BookLibrary.Entities.Reader dbBook)
 {
     dbBook.FirstName   = this.FirstName;
     dbBook.LastName    = this.LastName;
     dbBook.PhoneNumber = this.PhoneNumber;
     dbBook.CreatedDate = this.CreatedDate;
 }
コード例 #2
0
 public ReaderModel(BookLibrary.Entities.Reader reader)
 {
     this.ID          = reader.ID;
     this.FirstName   = reader.FirstName;
     this.LastName    = reader.LastName;
     this.PhoneNumber = reader.PhoneNumber;
     this.CreatedDate = reader.CreatedDate;
 }