简体   繁体   中英

Import data from a CSV file into SQLite database

I'm trying for several hours to write a simple application in C# that retrieves data from a CSV file to the SQLite database. The problem is that I do not know how to transfer the data to the database. I was looking for tutorials on the internet but none of them helped. Could someone help me to solve the problem?

除非您继续处理数据,否则不必为了显示csv而将其填充到datagrid ...要测试CsvHelper,该怎么

Check out " A Fast CSV Reader " over at CP. It will allow you to read a CSV file into any type of in-memory structure you like (DataTable, collection of objects) and free Telerik Data Access ORM which supports SQLite will allow you to write that data to SQLite database file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM