22 lines
559 B
C#
22 lines
559 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using Microsoft.EntityFrameworkCore;
|
|||
|
|
|||
|
namespace YTManager
|
|||
|
{
|
|||
|
public class MediaDB : DbContext
|
|||
|
{
|
|||
|
public DbSet<Models.Channel> Channels { get; set; }
|
|||
|
public DbSet<Models.Video> Videos { get; set; }
|
|||
|
|
|||
|
public MediaDB(DbContextOptions<MediaDB> options) :base(options){ }
|
|||
|
|
|||
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
|||
|
{
|
|||
|
base.OnConfiguring(optionsBuilder);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|