C
C#3mo ago
Itamar

Hey there I created a database with my ASP.net web api project earlier and now I want to recreate it

and I delete my database and created a new one and delete the migrations folder but suddenly when I try to recreate I am facing this error: 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 If any1 one can try to help me please will much appreciated I can send image of datacontext and everything
Design-time DbContext Creation - EF Core
Strategies for creating a design-time DbContext with Entity Framework Core
1 Reply