Ejemplo n.º 1
0
        public void ReturnBook(HardCopy copy)
        {
            var history = new BookLeaningHistory
            {
                HardCopyId = copy.Id,
                UserLeantTo = copy.UserLeantTo.Value,
                LeantDate = copy.LeantDate.Value,
                ReturnedDate = DateTime.Now
            };

            _libraryContext.BookLeaningHistories.InsertOnSubmit(history);
            _libraryContext.SubmitChanges();
        }
Ejemplo n.º 2
0
		private void detach_HardCopies(HardCopy entity)
		{
			this.SendPropertyChanging();
			entity.Book = null;
		}
Ejemplo n.º 3
0
		private void attach_HardCopies(HardCopy entity)
		{
			this.SendPropertyChanging();
			entity.Book = this;
		}
Ejemplo n.º 4
0
 partial void DeleteHardCopy(HardCopy instance);
Ejemplo n.º 5
0
 partial void UpdateHardCopy(HardCopy instance);
Ejemplo n.º 6
0
 partial void InsertHardCopy(HardCopy instance);