mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
21 lines
540 B
C#
21 lines
540 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace Remotely.Server.Data;
|
|
|
|
public class SqlServerDbContext : AppDb
|
|
{
|
|
private readonly IConfiguration _configuration;
|
|
|
|
public SqlServerDbContext(IConfiguration configuration, IWebHostEnvironment hostEnv)
|
|
: base(hostEnv)
|
|
{
|
|
_configuration = configuration;
|
|
}
|
|
|
|
protected override void OnConfiguring(DbContextOptionsBuilder options)
|
|
{
|
|
options.UseSqlServer(_configuration.GetConnectionString("SQLServer"));
|
|
base.OnConfiguring(options);
|
|
}
|
|
}
|