使用BulkMerge报错,文件无法删除 返回

SqlSugar 待处理
94

sqlSugar.AsTenant().GetConnection("hd").Fastest<Selling>().PageSize(1000).BulkMerge(Db);

执行上面这句代码的时候,系统报错

 System.IO.IOException: The process cannot access the file 'E:\Code\test\合达同步\hd_Job\bin\Debug\net9.0\bulkcopyfiles\45bd5522-926f-4066-a929-32452f626b8a.csv' because it is being used by another process.

热忱回答0