From ed2ad711d0a364b244ac37b555eb80adcf677081 Mon Sep 17 00:00:00 2001 From: Seasoned Apprentice <7marvit@gmail.com> Date: Mon, 15 Nov 2021 10:20:07 +0100 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8279ea5..1e8f2b6 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ from their own repository description: ## How to use ExcelHelper outputs a table with a total row. Only numeric columns are taken into consideration -``` +```csharp var SomeDataTable = GetDataTable(sql); var file = AppDomain.CurrentDomain.BaseDirectory + "/output/rowtotal.xlsx"; @@ -29,7 +29,7 @@ eh.Dispose(); ![RowTotal](https://github.com/mvit777/ExcelHelper/raw/master/img/rowTotal.png) outputs a pivot table in a separate SHEET -``` +```csharp string sql = "SELECT * FROM Invoices ORDER BY OrderDate"; var results = GetDataTable(config, sql, null); var file = AppDomain.CurrentDomain.BaseDirectory + "/output/pivot_at_once.xlsx";