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
|
|
|
|
|
2018-02-20 04:57:14 +00:00
|
|
|
|
public MediaDB(DbContextOptions<MediaDB> options) : base(options){ }
|
2017-09-01 08:55:02 +00:00
|
|
|
|
|
2018-02-20 04:57:14 +00:00
|
|
|
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {
|
2017-09-01 08:55:02 +00:00
|
|
|
|
base.OnConfiguring(optionsBuilder);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|