public virtual void AddRange(List <T> models) { try { _cache?.AddRange(models); _dbSet.AddRange(models); _db.SaveChanges(); }catch (Exception ext) { _log.CatchError(ext.Message, 0, models, ext, "Add Range", null); throw; } }
public void AddRange(List <T> models) { _cache?.AddRange(models); _lite.InsertBulk(models); }