initial load
This commit is contained in:
@ -0,0 +1,25 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace YouTubeViewers.EntityFramework
|
||||
{
|
||||
public class YouTubeViewersDbContextFactory
|
||||
{
|
||||
private readonly DbContextOptions _options;
|
||||
|
||||
public YouTubeViewersDbContextFactory(DbContextOptions options)
|
||||
{
|
||||
_options = options;
|
||||
}
|
||||
|
||||
public YouTubeViewersDbContext Create()
|
||||
{
|
||||
|
||||
return new YouTubeViewersDbContext(_options);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user