Код: Выделить всё
Unable to create a 'DbContext' of type 'MyAppContext'. The exception 'The seed entity for entity type 'Category' cannot be added because another seed entity with the same key value for {'Id'} has already been added. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting key values.' was thrown while attempting to create an instance. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728Невозможно создать dbcontext type myAppContext
Я не уверен, какую часть кода я должен изменить, потому что я все еще новень>
Подробнее здесь: https://stackoverflow.com/questions/797 ... -migration
Мобильная версия