dotnet / EntityFramework.Docs

Documentation for Entity Framework Core and Entity Framework 6
https://docs.microsoft.com/ef/
Creative Commons Attribution 4.0 International
1.62k stars 1.96k forks source link

I cannot migrate #4767

Open Amirhonali opened 1 month ago

Amirhonali commented 1 month ago

Type of issue

Typo

Description

[Введите отзыв здесь] amirhon@Noutbuk-Amirhon Infrastructure % dotnet ef migrations add InitialCreate Build started... Build succeeded. Unable to create a 'DbContext' of type ''. The exception 'Unable to resolve service for type 'Microsoft.EntityFrameworkCore.DbContextOptions' while attempting to activate 'Infrastructure.DataAccess.BookCatalogDbContext'.' was thrown while attempting to create an instance. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728 amirhon@Noutbuk-Amirhon Infrastructure %

Page URL

https://learn.microsoft.com/ru-ru/ef/core/dbcontext-configuration/#constructor-argument

Content source URL

https://github.com/dotnet/EntityFramework.Docs/blob/main/entity-framework/core/dbcontext-configuration/index.md

Document Version Independent Id

b0a3d5ad-b62c-1ff4-386a-f11e350eea0c

Article author

@ajcvickers

Amirhonali commented 1 month ago

this exemption only on maOS

ajcvickers commented 4 weeks ago

This issue is lacking enough information for us to be able to fully understand what is happening. Please attach a small, runnable project or post a small, runnable code listing that reproduces what you are seeing so that we can investigate.

Amirhonali commented 3 weeks ago

can you send me your telegram link