initial load
This commit is contained in:
24
YouTubeViewers.EntityFramework/YouTubeViewersDbContext.cs
Normal file
24
YouTubeViewers.EntityFramework/YouTubeViewersDbContext.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using YouTubeViewers.EntityFramework.DTOs;
|
||||
|
||||
namespace YouTubeViewers.EntityFramework
|
||||
{
|
||||
public class YouTubeViewersDbContext : DbContext
|
||||
{
|
||||
public YouTubeViewersDbContext(DbContextOptions options) : base(options) { }
|
||||
|
||||
public DbSet<YouTubeViewerDto> YouTubeViewers { get; set; }
|
||||
|
||||
//DbContextOptions options = new DbContextOptionsBuilder()
|
||||
// .UseSqlite(_connectionString)
|
||||
// .Options;
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user