示例#1
0
 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;
 }
示例#2
0
 public BorrowRepository(DBLibraryContext context)
 {
     this.context = context;
 }
示例#3
0
 public GenresRepository(DBLibraryContext ctx)
 {
     this.context = ctx;
     this.Genres  = ctx.Genres;
 }
示例#4
0
 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;
 }