//injectam un dbContext pt a face repository testabil
 public SoccerMatchRepository(Models.DBObjects.SoccerDataContext dbContext)
 {
     this.dbContext = dbContext;
 }//todo
예제 #2
0
 //injectam un dbContext pt a face repository testabil
 public TeamRepository(Models.DBObjects.SoccerDataContext dbContext)
 {
     this.dbContext = dbContext;
 }
 public SoccerMatchRepository()
 {
     this.dbContext = new Models.DBObjects.SoccerDataContext();
 }
 public LeagueRepository()
 {
     this.dbContext = new Models.DBObjects.SoccerDataContext();
 }