jami1217
✅ There is already an open DataReader associated with this Command which must be closed first
I actually declared:
List<(string, string, decimal)> paymentDataList = new List<(string, string, decimal)>();
and put:
paymentDataList.Add((paymentTypeID, description, totalAmount));
into loop 'while'
then retrieved the data to make a db entry
foreach (var data in paymentDataList)
{
InsertIntoDailyReportItem(reportID, data.Item1, data.Item3);
}
17 replies