public BooksRepository(DBLibraryContext ctx, IGenresRepository genRepo, IAuthorsRepository authorsRepository, IBorrowRepository borrowR) { this.context = ctx; this.Books = ctx.Books; this.GenresRepository = genRepo; this.AuthorsRepository = authorsRepository; this.BorrowRepository = borrowR; }
public BorrowRepository(DBLibraryContext context) { this.context = context; }
public GenresRepository(DBLibraryContext ctx) { this.context = ctx; this.Genres = ctx.Genres; }
public UserFavouritesRepository(DBLibraryContext ctx) { this.context = ctx; }
public AuthorsRepository(DBLibraryContext ctx) { this.context = ctx; this.Authors = ctx.Authors; }
public UserRepository(DBLibraryContext ctx, IBooksRepository bookr) { this.Context = ctx; this.BookRepo = bookr; }