c# - DataClassesDatacontext Stackoverflow when submitting changes -


i trying update values in database. code worked flawlessly until i've added new value database. have updated dataclasses1.dbml , shows new column have added database. still getting stackoverflowexception when context.submitchanges() gets called. changeset contains 2 objects should updated (update 5 columns per row in case)

            var customers = new list<customer>();             using (var context = new dataclasses1datacontext())             {                 var result = custs in context.customer                              custs.action_id == desrequest.first().action_id &&                                     !custs.archivated                              select custs;                  inputvalidation.setaddresslines(ref result);                 context.submitchanges();                 customers = result.tolist();             } 

context.getchangeset shows:

{{inserts: 0, deletes: 0, updates: 2}}     deletes: count = 0     inserts: count = 0     updates: count = 2 

before update of each row i'm adding new customers json-post in nancyfx code (which surprise still works intended)

    private static bool additems(string request)     {         // hier alle sammeln und in einem wisch rein         var customers = jsonconvert.deserializeobject<ienumerable<customer>>(request);         foreach (var cstmr in customers)         {             using (var context = new dataclasses1datacontext())             {                 context.customer.insertonsubmit(cstmr);                 try                 {                     context.submitchanges();                 }                 catch (exception)                 {                     //todo: hier ggfs. reparieren                     context.submitchanges();                     return false;                 }             }         }         return true;     } 

these error-details: these error- "das programm "[8028] iisexpress.exe" wurde mit code -2147023895 (0x800703e9) beendet."

the stacktrace shows null. doing wrong , can improve?

i've deleted "obj" folder of solution , rebuilt project , works intended again.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -