Example #1
0
 public GenericRepository(DataContextProvider dcProvider)
 {
     _dataContext = dcProvider.Get();
     _dbset       = _dataContext.Set <TEntity>();
 }
Example #2
0
 public SoccerContext Get()
 {
     return(_dataContext ?? (_dataContext = new SoccerContext(options)));
 }