Would be helpful if you can post parts of your code or the name of the plugin you're trying to install.
Parts of code that could help - Plugin Install / Uninstall methods - New/Modified Entities inside your plugin - OnModelCreating of your DbContext inside your plugin