开发者

There is already an open data reader associated with this command which must be closed first

The开发者_JAVA百科re is already an open data reader associated with this command which must be closed first.

due to some foreign key error this error occurred and then my application works fail.how can i rid of this type of bug.

If error occurred than linq object automatically closed for that session but it reflect all sessions of application .


In general if the command is not closed means, use the following code:

commandobject.Close();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜