Erro:已有打开的与此 Command 相关联的 DataReader,必须首先将它关闭。
處理方式有兩種
1,設定ConnectionString加上MultipleActiveResultSets
2.先讀出放置在List中
foreach(Employee
{
}
Erro:已有打开的与此 Command 相关联的 DataReader,必须首先将它关闭。
處理方式有兩種
1,設定ConnectionString加上MultipleActiveResultSets
2.先讀出放置在List中
foreach(Employee
{
}