|
|
|
@ -6,7 +6,6 @@ using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Entity;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
|
|
|
|
namespace Contextlib
|
|
|
|
|
{
|
|
|
|
|
public class WTFContext : DbContext
|
|
|
|
@ -90,7 +89,7 @@ namespace Contextlib
|
|
|
|
|
{
|
|
|
|
|
if (!options.IsConfigured)
|
|
|
|
|
{
|
|
|
|
|
options.UseSqlServer(
|
|
|
|
|
options.UseSqlite(
|
|
|
|
|
$"Server={Environment.GetEnvironmentVariable("DB_SERVER_AUTH")};" +
|
|
|
|
|
$"Database={Environment.GetEnvironmentVariable("DB_DATABASE_AUTH")};" +
|
|
|
|
|
$"User Id={Environment.GetEnvironmentVariable("DB_USER_AUTH")};" +
|
|
|
|
|