예제 #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
 }
예제 #2
0
 public BookRepository(LibraryAppContext library) : base(library)
 {
 }
예제 #3
0
 public UserRepository(LibraryAppContext library) : base(library)
 {
 }
예제 #4
0
 public AuthorRepository(LibraryAppContext library) : base(library)
 {
 }