誰でも助けることができますか?このコードを書いて実行すると。プログラムに、「このコマンドに関連付けられた開いている DataReader が既に存在するため、最初に閉じる必要があります」というエラーが表示されます。
これは私のコードです。
Parallel.For(0, MthRange, i => {
PSUpfrontFeeForMonth[i] = CommissionSummary
.Where(s => s.TransDate == oReportCommonFilter.fromDate.AddMonths(i))
.Sum(s => s.PSUpfrontFee);
if (!PSUpfrontFeeForMonth[i].HasValue)
{
PSUpfrontFeeForMonth[i] = 0;
}
});
ありがとう。
よろしく、ジェーン