Files
YouTubeViewers/YouTubeViewers.EntityFramework/YouTubeViewersDbContextFactory.cs
2022-08-22 15:56:12 +02:00

26 lines
567 B
C#

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);
}
}
}