Skip to content

Null reference exception in migrations when string has invalid store type #33556

@benjo55

Description

@benjo55

Hello guys

After executing : "dotnet ef migrations add InitialCreate" on a very simple starting API project, I get the fatal message error message
Build started...
Build succeeded.
Unable to create a 'DbContext' of type ''. The exception 'Object reference not set to an instance of an object.' was thrown while attempting to create an instance. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728

Environment : Framework .Net8.0, EF8.0, SQL Server 2022

Below, screen copies, and a few sources in Word attached.

Thanks in advance for any Help

Sources.docx

image

image

image

image

image

Metadata

Metadata

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions