Example #1
0
 public void Commit()
 {
     try
     {
         _context.SaveChanges();
     }
     catch (Exception ex)
     {
         OnError(ex);
     }
 }
        public void Remove(int id)
        {
            var obj = GetById(id);

            _Db.Set <TEntity>().Remove(obj);
            _Db.SaveChanges();
        }