20 lines
546 B
C#
20 lines
546 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace MessengerBroker.Db.Sql
|
|
{
|
|
public class BrokerSqlDbContext : BrokerDbContext
|
|
{
|
|
private readonly string connectionString;
|
|
|
|
public BrokerSqlDbContext(string connectionString)
|
|
{
|
|
this.connectionString = connectionString;
|
|
}
|
|
|
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
|
{
|
|
base.OnConfiguring(optionsBuilder);
|
|
optionsBuilder.UseSqlServer(this.connectionString);
|
|
}
|
|
}
|
|
} |