Example #1
0
 public void RefreshConnection()
 {
     _Context.Dispose();
     _Context = new DbEntities(_Username);
 }
Example #2
0
 public GenericRepository(DbEntities context)
 {
     this._Context = context;
     this._DbSet   = context.Set <TEntity>();
 }