madslundt / NetCoreMicroservicesSample

Sample using micro services in .NET Core 3.1 Focusing on clean code
MIT License
695 stars 169 forks source link

Outbox and EventStore switch to Efcore Issues #5

Closed mkojoa closed 4 years ago

mkojoa commented 4 years ago

With the Outbox and EventStore setup in the appsettings, when i change the type from mogo to ef, all the service keeps failing. After debugging through i realized that the dbContextOption appears null in both the EventStoresExtensions and OutboxExtensions. ef_error

madslundt commented 4 years ago

The documentation has not been updated for this yet.

You need to pass in DbContextOptionsBuilder for it to know which database plugin it should use. Just as you do when you're adding the DataModel.

mkojoa commented 4 years ago

Well noted sir.