Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

context updates

$
0
0

When using an early bound data context,  does the code below send the whole record back to crm, or just the updated pieces? Is there a more efficient way to do this from a console app?

var accts = db.accounts.Where(x => x.accountnumber == null);

                    foreach (var a in accts)

                    {

                       a.accountnumber = <someValue>

cx.Update(a);

cx.SaveChanges();

                    }


Viewing all articles
Browse latest Browse all 55831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>