'DatabaseFacade' does not contain a definition for 'Migrate' and no accessible extension method 'Migrate'... - eShopOnContainers

ErrorsMicroservicesWeb Development.net core

Hi everyone,

I’ve been going through Microsoft’s eShopOnContainers repo and replicating it as a small test project to learn microservices. While adding the WebHost Customization project I ran into the following error: 

Severity Code Description Project File Line Suppression State
Error CS1061 ‘DatabaseFacade’ does not contain a definition for ‘Migrate’ and no accessible extension method ‘Migrate’ accepting a first argument of type ‘DatabaseFacade’ could be found (are you missing a using directive or an assembly reference?) WebHost.Customization … N/A

This turned out to be a fairly simple fix. All that’s required is the following package (I installed via Nuget):

Microsoft.EntityFrameworkCore.SqlServer

Thanks to the following stackoverflow post for the info: https://stackoverflow.com/a/57606203/522859

2 comments

Comments from the original blog are preserved here. New comments are closed.

  1. Vahid

    Thanks man, that helped.

  2. Chris Owens
    In reply to Vahid

    No worries!