public AuthorRepository(BookDBContext authorContext) { _authorContext = authorContext; }
public ReviewRepository(BookDBContext reviewContext) { _reviewContext = reviewContext; }
public BookRepository(BookDBContext bookContext) { _bookContext = bookContext; }
/**************************************//* dependency injection *//**************************/ public CategoryRepository(BookDBContext categoryContext) { _categoryContext = categoryContext; }
// BookDbContext here represents my database logic object // my access to the database tables and records public CountryRepository(BookDBContext countryContext) { _countryContext = countryContext; // dependency injection }