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

Example 1: he type or namespace name 'Text' could not be found

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