Exemplo n.º 1
0
 public UnitOfWork()
 {
     _libraryAppContext = new LibraryAppContext();
     #region Initialize Repos
     UserRepository     = new UserRepository(_libraryAppContext);
     BookRepository     = new BookRepository(_libraryAppContext);
     AuthorRepository   = new AuthorRepository(_libraryAppContext);
     UserBookRepository = new UserBookRepository(_libraryAppContext);
     #endregion
 }
Exemplo n.º 2
0
 public BookRepository(LibraryAppContext library) : base(library)
 {
 }
Exemplo n.º 3
0
 public UserRepository(LibraryAppContext library) : base(library)
 {
 }
Exemplo n.º 4
0
 public AuthorRepository(LibraryAppContext library) : base(library)
 {
 }