You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IConfigurationRoot configuration = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("appsettings.json")
.Build();
again in DesignTimeDbContextFactory.cs, can we leverage the DI just by adding a constructor and a readonly field of type IConfiguration in DesignTimeDbContextFactory?
The text was updated successfully, but these errors were encountered:
Rather than recreating
again in DesignTimeDbContextFactory.cs, can we leverage the DI just by adding a constructor and a readonly field of type
IConfiguration
inDesignTimeDbContextFactory
?The text was updated successfully, but these errors were encountered: