Question : The type or namespace name 'MovieContext' could not be found (are you missing a using directive or an assembly reference?)
Answered by : tom-zk99pilqv6hu
if (Environment.IsDevelopment()) { services.AddDbContext<RazorPagesMovieContext>(options => options.UseSqlite( Configuration.GetConnectionString("MovieContext"))); } else { services.AddDbContext<RazorPagesMovieContext>(options => options.UseSqlServer( Configuration.GetConnectionString("MovieContext"))); }
Source : | Last Update : Thu, 11 Jun 20
Question : he type or namespace name '' could not be found (are you missing a using directive or an assembly reference?) unity
Answered by : joshua-fredette
Your custom classes (`xxx`) are likely in their own namespace that the your script namespace doesn't know about. In other words its not in a scope that it can see.
Source : | Last Update : Mon, 21 Nov 22