20 lines
594 B
C#
20 lines
594 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace PlixP.Models
|
|
{
|
|
public class PlixContext : DbContext
|
|
{
|
|
protected override void OnConfiguring(DbContextOptionsBuilder options)
|
|
=> options.UseSqlite("Data Source=plix.db");
|
|
public DbSet<Movie> Movies { get; set; }
|
|
public DbSet<Rating> Ratings { get; set; }
|
|
public DbSet<Category> Categories { get; set; }
|
|
public DbSet<CategoryMovie> CategoryMovies { get; set; }
|
|
}
|
|
}
|