private void Flush() { var reader = new InMemoryDataReader(rows, filledRowsCount, columns.Length); target.BulkCopy(reader, tableName, columns.Length); filledRowsCount = 0; }
private void Flush() { for (var i = 0; i < filledRowsCount; i++) { var r = rows[i]; for (var j = 0; j < columns.Length; j++) { r[j] = ConvertType(r[j], columns[j]); } } var reader = new InMemoryDataReader(rows, filledRowsCount, columns.Length); target.BulkCopy(reader, tableName, columns.Length); filledRowsCount = 0; }