Dec 13, 2016 11:41 AM|navneetmitawa|LINK
Already shared link...
You can configure the publish profile to run the grant script in the membership database during deployment because that database deployment uses the dbDacFx provider. You can't run scripts during Code First Migrations deployment, which is how you're deploying
the application database. Therefore, you have to manually run the script before deployment in the application database.