Example #1
0
 public T Get(Func <T, bool> predicate)
 {
     using (var db = new BrasileiraoContext())
     {
         return(db.Find <T>(predicate));
     }
 }
Example #2
0
 public void Remove(T entity)
 {
     using (var db = new BrasileiraoContext())
     {
         db.Remove(entity);
         db.SaveChanges();
     }
 }