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