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 }
public BookRepository(LibraryAppContext library) : base(library) { }
public UserRepository(LibraryAppContext library) : base(library) { }
public AuthorRepository(LibraryAppContext library) : base(library) { }