Text-to-DataTable Generator
Raw Data (CSV/TSV)
C# DataTable Code
What is the Text-to-DataTable Tool?
The Text-to-DataTable Generator simplifies the process of creating mockup database tables for C# unit tests. Paste your Excel data or CSV file content, and this tool will generate the exact C# code required to set up a System.Data.DataTable, complete with column definitions and row populations.
It handles common delimiters and takes care of C# string escaping, making it an essential tool for rapid prototyping and data-driven testing.