Пример #1
0
 public AuthorRepository(BookDBContext authorContext)
 {
     _authorContext = authorContext;
 }
Пример #2
0
 public ReviewRepository(BookDBContext reviewContext)
 {
     _reviewContext = reviewContext;
 }
Пример #3
0
 public BookRepository(BookDBContext bookContext)
 {
     _bookContext = bookContext;
 }
 /**************************************//* dependency injection *//**************************/
 public CategoryRepository(BookDBContext categoryContext)
 {
     _categoryContext = categoryContext;
 }
Пример #5
0
        // BookDbContext here represents my database logic object
        // my access to the database tables and records

        public CountryRepository(BookDBContext countryContext)
        {
            _countryContext = countryContext; // dependency injection
        }