The type or namespace name 'DataContext' could not be found (are you missing a using directive or an assembly reference?) [API] code example
Example: The type or namespace name 'MovieContext' could not be found (are you missing a using directive or an assembly reference?)
if (Environment.IsDevelopment())
{
services.AddDbContext(options =>
options.UseSqlite(
Configuration.GetConnectionString("MovieContext")));
}
else
{
services.AddDbContext(options =>
options.UseSqlServer(
Configuration.GetConnectionString("MovieContext")));
}