I am trying to follow this tutorial on how to use .NET Core with SQLite3 and VSCode, but it is not made very clear what is meant by MvcMovieContext.
I understand that this is a db context from which calls to the database can be made, but how do I define this?
In my startup.cs I have
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc();
// Add the whole configuration object here
services.AddSingleton<IConfiguration>(Configuration);
services.AddDbContext<DBContext>(options =>
options.UseSqlite("Data Source=LogonChecker.db"));
}
But of course I get
'The type or namespace name 'DBContext' could not be found (are you missing a using directive or an assembly reference?)
So my question is - what am I supposed to do with this? Just declare an empty DBContext class? All I want to do is create an extremely simple app which stores data in a sqlite database. Any help is much appreciated