🗃️ created dbcontext
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
parent
cc7bb34302
commit
f925b87883
3 changed files with 22 additions and 1 deletions
11
backend/Context/DbContext.cs
Normal file
11
backend/Context/DbContext.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
using backend;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
public class MovieDbContext: DbContext
|
||||
{
|
||||
public MovieDbContext(DbContextOptions<MovieDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
public DbSet<Movie> Movies { get; set; }
|
||||
}
|
Reference in a new issue