Quantcast
Channel: CRM Development 論壇
Viewing all articles
Browse latest Browse all 10280

Guid of newly created record?

$
0
0

I'm trying to get the GUID of new account created but there is no values in the SaveChangesResultCollection:

Account account = new Account();
Account.name = "test";
DbContext.Create(account);
SaveChangesResultCollection results = DbContext.SaveChanges();
How do I get the GUID for the newly created record?


Viewing all articles
Browse latest Browse all 10280

Trending Articles



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