BackEnd/YTManager/MediaDB.cs

23 lines
611 B
C#
Raw Normal View History

2017-09-01 08:55:02 +00:00
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; }
2018-02-18 19:38:28 +00:00
public DbSet<Models.Tag> Tags { get; set; }
2017-09-01 08:55:02 +00:00
public MediaDB(DbContextOptions<MediaDB> options) :base(options){ }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
base.OnConfiguring(optionsBuilder);
}
}
}