I have never done this before. And I have been advised to look at the documentation tutorial.
Upon reviewing it I fail to understand the process. Is Moviecontext a super object that we pass properties and abilities to it through inheritance and value assignment?
Do we use properties to assign capabilities?
And than also how is the information passed to the view and ordered?
Do we use DbSet<Entity> properties to add capabilites to the object we are trying to pass to the view? DbContext options configure the DdbBontext object. Textbook example
using Microsoft.EntityFrameworkCore;namespace MovieList.Models { public class MovieContext : DbContext { public MovieContext(DbContextOptions<MovieContext> options) : base(options) { } public DbSet<Movie> Movies { get; set; } = null!; } }
using Microsoft.EntityFrameworkCore;namespace MovieList.Models { public class MovieContext : DbContext { public MovieContext(DbContextOptions<MovieContext> options) : base(options) { } public DbSet<Movie> Movies { get; set; } = null!; } }