To Modify the UserName in the Userpart Table.

Topics: Administration, Announcements, Core, Customizing Orchard, General, Installing Orchard, Jobs, Localization, Troubleshooting, Writing modules, Writing themes
Apr 27, 2015 at 8:11 AM
In my current Project I have a few custom modules there is a requirement like i need to change the UserName from userpart table in one of my custom Module. May I know is it Possible to modify the usrename in UserPart table, Please send me the sample code to do these changes.
I reffered the ".ContentManager.UpdateEditor(user, this);" method but this is asking for a EditView View model , Please guide me how can i achive this functionlity.

Thanks and Regards,
Sunil M.R.
May 11, 2015 at 1:45 PM
You can, yes. Just fetch the User content items via IContentManager and change the UserName in UserPart. On how to fetch content items or handle parts see the tutorials out there.