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 :-(
精彩评论