Exemplo n.º 1
0
 public void Insert(T entity)
 {
     if (entity == null)
     {
         throw new ArgumentNullException("entity");
     }
     entities.Add(entity);
     context.SaveChanges();
 }
Exemplo n.º 2
0
 public int Commit()
 {
     return(_db.SaveChanges());
 }