If using SQL
Server, SqlBulkCopy.WriteToServer(DataTable)
Or also with SQL Server, you can write it to a .csv and
use BULK INSERT
If using MySQL, you could write it to a .csv and use LOAD
DATA INFILE
If using Oracle, you can use the array binding feature of ODP.NET
If SQLite:
数据库中批量插入数据的方法,记录一下。,布布扣,bubuko.com
原文:http://www.cnblogs.com/netfocus/p/3662501.html