Deutsch
Germany.ruФорумы → Архив Досок→ Программирование

Миграция .Net Framework => .Net Core

08.08.23 09:15
Re: Миграция .Net Framework => .Net Core
 
в ответ AlexNek 07.08.23 18:10
  services.AddDbContext<AppDbContext>(
                optionsBuilder =>
                {
                    {
                        optionsBuilder.UseOraclel($"password={appSettings.DbPassword};{appSettings.ConnectionString}");
                        optionsBuilder.EnableSensitiveDataLogging().LogTo(l => Debug.WriteLine(l));
                        optionsBuilder.EnableDetailedErrors(true);
                        optionsBuilder.LogTo(l => Debug.WriteLine(l));
                    }
                }, ServiceLifetime.Transient);

Функция AddDbContext это часть EntityFrameworkCore
а мне нужно оставить EntityFramework 6, чтобы работал ServiceHost и все остальное

 

Перейти на