table.lib
1.17.0
dotnet add package table.lib --version 1.17.0
NuGet\Install-Package table.lib -Version 1.17.0
<PackageReference Include="table.lib" Version="1.17.0" />
<PackageVersion Include="table.lib" Version="1.17.0" />
<PackageReference Include="table.lib" />
paket add table.lib --version 1.17.0
#r "nuget: table.lib, 1.17.0"
#:package table.lib@1.17.0
#addin nuget:?package=table.lib&version=1.17.0
#tool nuget:?package=table.lib&version=1.17.0
table.lib
Simple c# (.NET 6)
table library that renders any List<T>
or Dictionary<TV, T>
into a nicely formatted markdown
, csv
, html
, specflow
, sql-insert
or console
table, allowing for extra formats. It also supports dynamic
returns from Dapper as IEnumerable<IDictionary<string, object>>
via DBTable
object.
Installation
dotnet add package table.lib --version 1.8.1
Markdown format in the console
output
To make it easier to share, table.lib
outputs the console output as markdown friendly. Note that there is a specific markdown
output so the text justification can happen as per markdown specification.
Table<TestClass>.Add(list).ToConsole();
| Field1 | Field2 | Field3 | Field4 | Field5 | Field6 |
| ------ | -------------------- | ------------- | ------ | ----------- | ------ |
| 321121 | Hi 312321 | 2,121.32 | True | 01-Jan-1970 | 34.43 |
| 32321 | Hi long text | 21,111,111.32 | True | 01-Jan-1970 | 34.43 |
| 321 | Hi longer text | 2,121.32 | True | 01-Jan-1970 | 34.43 |
| 13 | Hi very long text | 21,111,121.32 | True | 01-Jan-1970 | 34.43 |
| 13 | Hi very, long text | 21,111,121.32 | True | 01-Jan-1970 | 34.43 |
| 13 | Hi "very" long text | 21,111,121.32 | True | 01-Jan-1970 | 34.43 |
Field1 | Field2 | Field3 | Field4 | Field5 | Field6 |
---|---|---|---|---|---|
321121 | Hi 312321 | 2,121.32 | True | 01-Jan-1970 | 34.43 |
32321 | Hi long text | 21,111,111.32 | True | 01-Jan-1970 | 34.43 |
321 | Hi longer text | 2,121.32 | True | 01-Jan-1970 | 34.43 |
13 | Hi very long text | 21,111,121.32 | True | 01-Jan-1970 | 34.43 |
13 | Hi very, long text | 21,111,121.32 | True | 01-Jan-1970 | 34.43 |
13 | Hi "very" long text | 21,111,121.32 | True | 01-Jan-1970 | 34.43 |
Considerations:
- Any
CRLF
will be automatically transformed into a space
Dynamic Fields
If the List contains another collection of <strings>, the library is able to scan those and build the resultant dataset giving them a column name called DynamicN
:
var test = new List<IEnumerable<string>>
{
new List<string>() {"AAA", "BBB", "CCC"},
new List<string>() {"AAA", "BBB", "CCC"},
new List<string>() {"AAA", "BBB", "CCC"},
new List<string>() {"AAA", "BBB", "CCC"}
};
Table<IEnumerable<string>>.Add(test).ToConsole();
| Capacity | Count | Dynamic0 | Dynamic1 | Dynamic2 |
| -------- | ----- | -------- | -------- | -------- |
| 4 | 3 | AAA | BBB | CCC |
| 4 | 3 | AAA | BBB | CCC |
| 4 | 3 | AAA | BBB | CCC |
| 4 | 3 | AAA | BBB | CCC |
Capacity | Count | Dynamic0 | Dynamic1 | Dynamic2 |
---|---|---|---|---|
4 | 3 | AAA | BBB | CCC |
4 | 3 | AAA | BBB | CCC |
4 | 3 | AAA | BBB | CCC |
4 | 3 | AAA | BBB | CCC |
Column Name change
If the name of the column is not of your liking, you can change it via OverrideColumnsNames
and provide your preferred name. Note that this will also alter the column width to allow for more room if the new name is larger than the previous one.
Table<IEnumerable<string>>.Add(test)
.OverrideColumnsNames(new Dictionary<string, string> {{"Dynamic0","ColumnA"}})
.ToConsole();
| Capacity | Count | ColumnA | Dynamic1 | Dynamic2 |
| -------- | ----- | -------- | -------- | -------- |
| 4 | 3 | AAA | BBB | CCC |
| 4 | 3 | AAA | BBB | CCC |
| 4 | 3 | AAA | BBB | CCC |
| 4 | 3 | AAA | BBB | CCC |
Capacity | Count | ColumnA | Dynamic1 | Dynamic2 |
---|---|---|---|---|
4 | 3 | AAA | BBB | CCC |
4 | 3 | AAA | BBB | CCC |
4 | 3 | AAA | BBB | CCC |
4 | 3 | AAA | BBB | CCC |
Column filtering
You don't want to show all the columns? Easy, just use the FilterColumns
property and define the action to perform FilterAction.Include
or FilterAction.Exclude
:
By default it will use the FilterAction.Exclude
functionality:
Table<IEnumerable<string>>.Add(test)
.OverrideColumnsNames(new Dictionary<string, string> { { "Dynamic0", "ColumnA" } })
.FilterColumns(new []{ "Capacity", "Count" })
.ToConsole();
| ColumnA | Dynamic1 | Dynamic2 |
| -------- | -------- | -------- |
| AAA | BBB | CCC |
| AAA | BBB | CCC |
| AAA | BBB | CCC |
| AAA | BBB | CCC |
ColumnA | Dynamic1 | Dynamic2 |
---|---|---|
AAA | BBB | CCC |
AAA | BBB | CCC |
AAA | BBB | CCC |
AAA | BBB | CCC |
Table<IEnumerable<string>>.Add(test)
.OverrideColumnsNames(new Dictionary<string, string> { { "Dynamic0", "ColumnA" } })
.FilterColumns(new []{ "Dynamic0" }, FilterActions.Include)
.ToConsole();
| Dynamic0 |
| -------- |
| AAA |
| AAA |
| AAA |
| AAA |
Row Highlighter
With a simple operation, we can now highlight the entire content of the table using the code below:
Table<IEnumerable<string>>.Add(GetStringMatrix())
.FilterColumns(new[] { "Dynamic0", "Dynamic1" }, FilterAction.Include)
.HighlightRows(ConsoleColor.Red, ConsoleColor.White)
.ToConsole();
**Note that this option will highlight all the rows
Field Highlighter
You need more control over the field you want to highlight? then use the highlight operator:
Table<TestClass>.Add(GetSampleOutput())
.HighlightValue(new HighlightOperator
{Field = "Field3", Type = HighlightType.Decimal, DecimalValue = 2121.32m})
.ToConsole();
**Note that this option will highlight one specific cell and it will use two colors, one for =
and one for <>
Column Justification
You need one of the columns, right aligned or centered? Use the column justification option.
Table<IEnumerable<string>>.Add(test)
.OverrideColumnsNames(new Dictionary<string, string>
{
{ "Dynamic0", "A" },
{ "Dynamic1", "B" },
{ "Dynamic2", "C" }
})
.FilterOutColumns(new[] { "Capacity", "Count" })
.ColumnContentTextJustification(new Dictionary<string, TextJustification>
{
{ "Dynamic0", TextJustification.Right },
{ "Dynamic1", TextJustification.Centered }
})
.ToConsole();
Note that this will only affect markdown
, console
and html
outputs and only their data. Columns labels will remain left aligned.
| A | B | C |
| -------- | -------- | -------- |
| AAA | BBB | CCC |
| AAA | BBB | CCC |
| AAA | BBB | CCC |
| AAA | BBB | CCC |
ColumnA | Dynamic1 | Dynamic2 |
---|---|---|
AAA | BBB | CCC |
AAA | BBB | CCC |
AAA | BBB | CCC |
AAA | BBB | CCC |
HTML Output
Transform your output into a nicely formatted HTML table
Table<IEnumerable<string>>.Add(test)
.OverrideColumnsNames(new Dictionary<string, string> { { "Dynamic0", "ColumnA" } })
.FilterColumns(new []{ "Capacity", "Count" })
.ToHtml(@"C:\temp\test.html");
Table<TestClass>.Add(list)
.ToHtml(@"C:\temp\test-list.html");
Sample generated code:
<table style="border-collapse: collapse; width: 100%;">
<tr>
<th style="text-align: center; background-color: #052a3d; color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">Field1</th>
<th style="text-align: center; background-color: #052a3d; color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">Field2</th>
<th style="text-align: center; background-color: #052a3d; color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">Field3</th>
<th style="text-align: center; background-color: #052a3d; color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">Field4</th>
<th style="text-align: center; background-color: #052a3d; color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">Field5</th>
<th style="text-align: center; background-color: #052a3d; color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">Field6</th>
</tr>
<tr>
<td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">321121</td>
<td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">Hi 312321</td>
<td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">2,121.32</td>
<td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">True</td>
<td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">01-Jan-1970</td>
<td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">34.43</td>
</tr>
<tr>
<td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">32321</td>
<td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">Hi long text</td>
<td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">21,111,111.32</td>
<td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">True</td>
<td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">01-Jan-1970</td>
<td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">34.43</td>
</tr>
<tr>
<td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">321</td>
<td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">Hi longer text</td>
<td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">2,121.32</td>
<td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">True</td>
<td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">01-Jan-1970</td>
<td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">34.43</td>
</tr>
<tr>
<td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">13</td>
<td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">Hi very long text</td>
<td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">21,111,121.32</td>
<td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">True</td>
<td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">01-Jan-1970</td>
<td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">34.43</td>
</tr>
<tr>
<td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">13</td>
<td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">Hi very, long text</td>
<td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">21,111,121.32</td>
<td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">True</td>
<td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">01-Jan-1970</td>
<td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">34.43</td>
</tr>
<tr>
<td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">13</td>
<td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">Hi "very" long<br> text</td>
<td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">21,111,121.32</td>
<td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">True</td>
<td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">01-Jan-1970</td>
<td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">34.43</td>
</tr>
</table>
Sample output:
<table style="border-collapse: collapse; width: 100%;"> <tr> <th style="text-align: center; background-color: #052a3d; color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">Field1</th> <th style="text-align: center; background-color: #052a3d; color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">Field2</th> <th style="text-align: center; background-color: #052a3d; color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">Field3</th> <th style="text-align: center; background-color: #052a3d; color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">Field4</th> <th style="text-align: center; background-color: #052a3d; color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">Field5</th> <th style="text-align: center; background-color: #052a3d; color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">Field6</th> </tr> <tr> <td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">321121</td> <td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">Hi 312321</td> <td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">2,121.32</td> <td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">True</td> <td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">01-Jan-1970</td> <td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">34.43</td> </tr> <tr> <td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">32321</td> <td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">Hi long text</td> <td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">21,111,111.32</td> <td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">True</td> <td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">01-Jan-1970</td> <td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">34.43</td> </tr> <tr> <td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">321</td> <td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">Hi longer text</td> <td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">2,121.32</td> <td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">True</td> <td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">01-Jan-1970</td> <td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">34.43</td> </tr> <tr> <td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">13</td> <td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">Hi very long text</td> <td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">21,111,121.32</td> <td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">True</td> <td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">01-Jan-1970</td> <td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">34.43</td> </tr> <tr> <td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">13</td> <td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">Hi very, long text</td> <td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">21,111,121.32</td> <td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">True</td> <td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">01-Jan-1970</td> <td style="text-align: right; color: black; background-color: white;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">34.43</td> </tr> <tr> <td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">13</td> <td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">Hi "very" long<br> text</td> <td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">21,111,121.32</td> <td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">True</td> <td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">01-Jan-1970</td> <td style="text-align: right; color: black; background-color: #f2f2f2;padding: 4px;border: 1px solid #dddddd; font-family:monospace; font-size: 14px;">34.43</td> </tr> </table>
Real HTML output:
CSV Output
Trasform your output into a nicely formatted CSV
file
Table<TestClass>.Add(list)
.ToCsv(@"C:\temp\test-list.csv");
The format of the file can be seen here:
Field1,Field2,Field3,Field4,Field5,Field6
321121,Hi 312321,"2,121.32",True,01-Jan-1970,34.43
32321,Hi long text,"21,111,111.32",True,01-Jan-1970,34.43
321,Hi longer text,"2,121.32",True,01-Jan-1970,34.43
13,Hi very long text,"21,111,121.32",True,01-Jan-1970,34.43
13,"Hi very, long text","21,111,121.32",True,01-Jan-1970,34.43
13,"Hi ""very"" long
text","21,111,121.32",True,01-Jan-1970,34.43
Note that we use the CSV standard when processing CRLF
, "
or ,
characters surrouding the value with double quotes.
SpecFlow output
Do you deal a lot with SpecFlow tests and want to have something that will generate the output nicely from Dapper? Here it's a simple output:
var s = Table<TestClass>.Add(GetSampleOutput()).ToSpecFlowString();
Console.Write(s);
and it becomes:
| Id | SenderId | SenderUsername | RecipientId | RecipientUsername | Content | DateRead | MessageSent | SenderDeleted | RecipientDeleted |
| 1 | 5 | lilly | 8 | ruiz | hi | | 08/02/2021 10:07:07 | False | False |
| 2 | 5 | lilly | 8 | ruiz | hello | | 21/02/2021 20:40:08 | False | False |
ToString output
Do you want to render the table somewhere else? Then just use the ToString method and bring the table anywhere with you. This will only produce the console
output and return it as string.
ToSqlInsertString
This format will allow you to output a sql string from a specific object like below:
var s = Table<TestClass>.Add(Samples.GetSampleOutput()).ToSqlInsertString();
var lines = s.Split(Environment.NewLine);
Assert.Multiple(() =>
{
Assert.That(lines[0], Is.EqualTo("INSERT INTO TestClass (Field1,Field2,Field3,Field4,Field5,Field6) VALUES (321121,'Hi 312321',2121.32,1,'1970-01-01',34.43);"));
Assert.That(lines[1], Is.EqualTo("INSERT INTO TestClass (Field1,Field2,Field3,Field4,Field5,Field6) VALUES (32321,'Hi long text',21111111.32,1,'1970-01-01',34.43);"));
Assert.That(lines[2], Is.EqualTo("INSERT INTO TestClass (Field1,Field2,Field3,Field4,Field5,Field6) VALUES (321,'Hi longer text',2121.32,1,'1970-01-01',34.43);"));
Assert.That(lines[3], Is.EqualTo("INSERT INTO TestClass (Field1,Field2,Field3,Field4,Field5,Field6) VALUES (13,'Hi very long text',21111121.32,1,'1970-01-01',34.43);"));
});
Known Issues
- Simple dictionaries
Dictionary<int, string>
will not work. The second argument needs to be a class.
Sponsors
No sponsors yet! Will you be the first?
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on table.lib:
Package | Downloads |
---|---|
confusion.matrix.lib
Simple confusion matrix builder for .net 5 |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
1.17.0 | 1,664 | 6/10/2024 |
1.16.0 | 988 | 4/20/2023 |
1.15.0 | 241 | 4/16/2023 |
1.14.0 | 478 | 11/9/2022 |
1.13.0 | 490 | 10/18/2022 |
1.12.0 | 516 | 10/18/2022 |
1.11.0 | 512 | 7/10/2022 |
1.10.0 | 467 | 7/10/2022 |
1.9.0 | 534 | 4/8/2022 |
1.8.3 | 2,997 | 11/28/2021 |
1.8.2 | 469 | 10/24/2021 |
1.8.1 | 403 | 8/29/2021 |
1.8.0 | 388 | 8/29/2021 |
1.7.1 | 392 | 8/29/2021 |
1.7.0 | 415 | 8/28/2021 |
1.6.5 | 391 | 8/28/2021 |
1.6.4 | 506 | 4/2/2021 |
1.6.3 | 430 | 4/2/2021 |
1.6.2 | 399 | 4/1/2021 |
1.6.1 | 382 | 3/31/2021 |
1.6.0 | 492 | 3/30/2021 |
1.5.0 | 426 | 3/30/2021 |
1.4.0 | 441 | 3/25/2021 |
1.3.0 | 475 | 3/20/2021 |
1.2.0 | 487 | 3/20/2021 |
1.1.0 | 389 | 1/31/2021 |
1.0.0 | 416 | 1/31/2021 |
v1.17
- Upgrade to .net 8