摘要:
#region使用SqlBulkCopy publicstaticboolExecuteTransactionScopeInsert(DataTabledt,intbatchSize){intcount=dt.Rows.Count;stringtableName="TestTable";intcopyTimeout=600;boolflag=false;try{using(SqlConnectioncn=newSqlConnection(connectionString)){using(TransactionScopescope=newTransactionScope()) 阅读全文