GoWorkPro.CsvBuilder
4.0.0
See the version list below for details.
dotnet add package GoWorkPro.CsvBuilder --version 4.0.0
NuGet\Install-Package GoWorkPro.CsvBuilder -Version 4.0.0
<PackageReference Include="GoWorkPro.CsvBuilder" Version="4.0.0" />
paket add GoWorkPro.CsvBuilder --version 4.0.0
#r "nuget: GoWorkPro.CsvBuilder, 4.0.0"
// Install GoWorkPro.CsvBuilder as a Cake Addin #addin nuget:?package=GoWorkPro.CsvBuilder&version=4.0.0 // Install GoWorkPro.CsvBuilder as a Cake Tool #tool nuget:?package=GoWorkPro.CsvBuilder&version=4.0.0
Very simple and Easy to use, convert datatables to CSV Author: Samer Shahbaz
Create Date: 15/11/2023
Description: The CsvBuilder utility, developed by Samer Shahbaz, is a powerful tool designed to simplify the process of creating CSV (Comma-Separated Values) files using .NET DataTables. This utility provides a convenient and efficient way to generate CSV data from one or more DataTables within a DataSet.
Key Features:
DataSet Integration: Accepts a DataSet as input, allowing the user to aggregate multiple DataTables for CSV creation. Flexible Value Rendering: Supports a customizable event, ValueRenderEvent, which allows users to define a custom parser for values based on their data type (column or row). Multiple DataTable Support: Enables the user to selectively include columns from different DataTables by specifying the table index. Stream Handling: The utility efficiently manages memory streams to optimize CSV generation. Dispose Method: Implements the IDisposable interface for proper resource management. Usage:
Constructor: Static Method for Creating CsvBuilder with Multiple DataTables: CsvBuilder csvBuilder = CsvBuilder.Datasets(dataTable1, dataTable2, ...);
Building CSV: csvBuilder.Build(tableIndex1, tableIndex2, ...) Customizing Value Rendering:
Subscribe to the ValueRenderEvent to define custom parsing logic for column and row values.
Output Handling: Obtain the CSV content as a Stream: Stream csvStream = csvBuilder.GetStream(); Save the CSV content to a file:
csvBuilder.SaveAsFile("filePath.csv");
Example #1:
// Create CsvBuilder with a DataSet ICsvBuilder csvBuilder = CsvBuilder.Datasets(dataSet);
// Build CSV with selected columns from specific DataTables ICsvExtractor csvExtractor = csvBuilder.Build();
// Obtain CSV content as a Stream MemoryStream csvStream = csvExtractor.GetStream();
// Save CSV content to a file csvExtractor.SaveAsFile("output.csv");
//dispose if necessary csvBuilder.Dispose(); This utility simplifies the process of CSV generation, providing users with a flexible and efficient solution for working with tabular data in the .NET environment.
For More Information See https://goworkpro.github.io/CSV-Builder-Utility/
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- ClosedXML (>= 0.102.1)
- Microsoft.Win32.Registry (>= 5.0.0)
- System.Security.Cryptography.ProtectedData (>= 8.0.0)
-
net5.0
- ClosedXML (>= 0.102.1)
- Microsoft.Win32.Registry (>= 5.0.0)
- System.Security.Cryptography.ProtectedData (>= 8.0.0)
-
net6.0
- ClosedXML (>= 0.102.1)
- Microsoft.Win32.Registry (>= 5.0.0)
- System.Security.Cryptography.ProtectedData (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
4.2.1 | 737 | 12/28/2023 |
4.2.0 | 655 | 12/28/2023 |
4.1.0 | 733 | 12/22/2023 |
4.0.2 | 675 | 12/20/2023 |
4.0.1 | 682 | 12/15/2023 |
4.0.0 | 722 | 12/14/2023 |
3.0.1 | 763 | 12/5/2023 |
3.0.0 | 774 | 12/1/2023 |
2.1.0 | 781 | 11/30/2023 |
2.0.0 | 763 | 11/28/2023 |
1.1.0 | 773 | 11/30/2023 |
1.0.2 | 729 | 11/27/2023 |
1.0.1 | 728 | 11/27/2023 |
1.0.0 | 752 | 11/27/2023 |