Beispiel #1
0
 //injectam un dbContext pentru a face repository a noastra testabila
 public CountryRepository(MusicPlayModelsDataContext dbContext)
 {
     this.dbContext = dbContext;
 }
Beispiel #2
0
 public CountryRepository()
 {
     this.dbContext = new MusicPlayModelsDataContext();
 }
 //injectam un dbContext pentru a face repository a noastra testabila
 public OrderRepository(MusicPlayModelsDataContext dbContext)
 {
     this.dbContext = dbContext;
 }
 public OrderRepository()
 {
     this.dbContext = new MusicPlayModelsDataContext();
 }
Beispiel #5
0
 //injectam un dbContext pentru a face repository a noastra testabila
 public ProductRepository(MusicPlayModelsDataContext dbContext)
 {
     this.dbContext = dbContext;
 }
Beispiel #6
0
 public ProductRepository()
 {
     this.dbContext = new MusicPlayModelsDataContext();
 }