Exemplo n.º 1
0
 public static void AddMember(Member member)
 {
     using var database = new LibraryContext();
     database.Members.Add(member);
     database.SaveChanges();
 }
Exemplo n.º 2
0
 public static void AddBookAuthorLink(BookAuthor ba)
 {
     using var database = new LibraryContext();
     database.BookAuthor.Add(ba);
     database.SaveChanges();
 }
Exemplo n.º 3
0
 public static void AddBook(Book book)
 {
     using var database = new LibraryContext();
     database.Books.Add(book);
     database.SaveChanges();
 }