The type or namespace name 'Configuration' could not be found (are you missing a using directive or an assembly reference?) code example

Example 1: error CS0246: The type or namespace name 'Slider' could not be found (are you missing a using directive or an assembly reference?)

using UnityEngine.UI;

Example 2: 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<RazorPagesMovieContext>(options =>
            options.UseSqlite(
                Configuration.GetConnectionString("MovieContext")));
        }
       else
        {
            services.AddDbContext<RazorPagesMovieContext>(options =>
            options.UseSqlServer(
                Configuration.GetConnectionString("MovieContext")));
        }