Exemplo n.º 1
0
 public AuthorRepository(BookDBContext authorContext)
 {
     _authorContext = authorContext;
 }
Exemplo n.º 2
0
 public ReviewRepository(BookDBContext reviewContext)
 {
     _reviewContext = reviewContext;
 }
Exemplo n.º 3
0
 public BookRepository(BookDBContext bookContext)
 {
     _bookContext = bookContext;
 }
 /**************************************//* dependency injection *//**************************/
 public CategoryRepository(BookDBContext categoryContext)
 {
     _categoryContext = categoryContext;
 }
Exemplo n.º 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
        }