CSV Importer
From the Editor menu you can insert CSV into a DB table and generate model classes.
Inserting CSV into the DB
- Select or create a SQLite DB file.
- Select a CSV file.
- The table name is set automatically from the CSV file name.
- Check the header and some rows in the preview.
- Press
Insert!to insert into the DB.
The first CSV row is used as column headers. If a header is empty, or a row's field count differs from the header count, an exception is thrown.
Generating a C# class
Pressing Generate C# Class generates a data model class based on the CSV columns.
Output location:
Generation rules:
- The
idcolumn gets[PrimaryKey, AutoIncrement]. - If every value parses as an integer →
int - If not an integer but parses as a float →
float - Otherwise →
string
Adjust the namespace or types of the generated class to match your project conventions.