开发者

When Urge records are exist getting an StackOverFlow exception

开发者 https://www.devze.com 2023-03-04 06:27 出处:网络
Here studenDetailsList are getting from database which consists of 30,000 records Var studentDetailsList;

Here studenDetailsList are getting from database which consists of 30,000 records

Var studentDetailsList;
Foreach ( var stDetails in studentDetailsList)
{
     // Here i am inserting each student in to table
}

I am getting error has

An unhandled exception of type 'System.StackOverflowExc开发者_StackOverflow中文版eption' occurred in System.Data.Entity.dll

What could be the problem ?

can anybody help


Probably the answer is that there is a bug in this piece of code:

 // Here i am inserting each student in to table

However, as you choose not to post the actual code, no-one can say where the bug is.

Like as not, that piece of code is recursively calling the original function. However, you chose not to reveal the name of the original function :-(

0

精彩评论

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