I have faced this issue when I added migration. Error - Unable to create an object of type 'PPDbContext'. For the different patterns supported at design time.