How can I get the number of inserted records?
Is there an easier way with L2S than to count earlier and count after and accept the difference?
Can you try using this feature?
_db.GetChangeSet().Inserts.Count();
Where is _db your datacontext, and you need to do this before you guess your changes?
SubmitChanges , , . db.GetChangeSet.Count(), . SubmitChanges , GetChangeSet.Count() db.
Source: https://habr.com/ru/post/1707252/More articles:How to programmatically highlight WSS and MOSS - c #https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1707248/methods-to-protect-intellectual-property-code-in-a-software-company&usg=ALkJrhiG-z98pHhNz6vkP-h5gJAZT_1ErQWeb service versus form publication - web-servicesProblems populating with ListBox WPF - paddingWhat technique should I use to replicate a Compose email view in an iphone application? - objective-cFinancial tracking of software projects - accountingHow to stop EnumWindows without win32 restrictions - c ++Running installer on Vista without shutting down UAC - installerMore complex (real) model binding? - c #Error connecting to MySQL / PHP, possible user assembly - phpAll Articles