/// <summary> /// Inserts an entire dataset into a table. /// </summary> /// <param name="into"></param> /// <param name="data"></param> /// <returns></returns> public bool Insert(String into, DataSet data) { if (!data.isReadOnly()) { for (int i = 0; i < data.NumberOfRows(); i++) { String[] parts = data.GetInsertString(i); if (!Insert(into, parts[0], parts[1])) { return false; } } } else { throw new InvalidOperationException("Dataset provided is read only and can not be used for inserting!"); } return true; }