Last post Mar 04, 2018 12:32 PM by mgebhard
Mar 04, 2018 12:22 PM|RateFor|LINK
I've been porting code from membership to identity, and using sample code from various Microsoft projects. (I've been doing this for 2 weeks, but there is now light at the end of the tunnel.)
I sometimes see 'context.savechanges' in the code I borrow.
It does not compile.
Can I replace it by: usermanager.updateuser(theuser)?
Are they the same thing?
Mar 04, 2018 12:32 PM|mgebhard|LINK
Commonly context is the instance name of the DbContext.
UserManager is commonly the instance name of the Identity's UserManager API. UserManager uses the DbContext to interact with the database.