A dumb application for merging user accounts in Kentico. It generates a SQL script that will update all FK references to a given UserID with a new NewUserID.
The application has been built using .NET Core RC2 just out of curiosity to try out whether my dev environment is set up correctly for writing Core apps.
It uses Dapper - the best object mapper for .NET!
- Get .NET Core
- Adjust
config.json
- fill in yourConnectionString
,OldUserID
andNewUserID
- Run in VS or from a command line by typing
> dotnet CMSUserMerger.dll
- Copy over stuff from CMS_User and CMS_UserSettings (make it conditional)
- Make it a little bit more generic (so that it could be used not only for User objects)
😈 Contributions are welcome!