コード例 #1
0
 public SqlGenericRepository(PPICEntities context)
 {
     _context = context;
     _dbSet   = context.Set <TEntity>();
 }
コード例 #2
0
 public void RevertChanges()
 {
     //overwrite the existing context with a new, fresh one to revert all the changes
     _context = new PPICEntities();
 }