Add project files.
This commit is contained in:
21
YTManager/MediaDB.cs
Normal file
21
YTManager/MediaDB.cs
Normal file
@ -0,0 +1,21 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user