public async Task <IEnumerable <TObject> > AddRangeAsync(IEnumerable <TObject> t) { await _context.Set <TObject>().AddRangeAsync(t); _context.SaveChanges(); return(t); }
public int Comit() { return(_dbContext.SaveChanges()); }