c# - Linq To Sql - How to get # of inserted records -


How can I get the number of records recorded?

Is there any easier way than L2S, before counting and after difference and counting?

Can you try to use this functionality? / P>

  _db.GetChangeSet (). Insert.Count ();  

Where _ db - your datacontax and before you insert your changes?


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -