|
@@ -1,6 +1,7 @@
|
|
|
using Microsoft.AspNetCore.Builder;
|
|
using Microsoft.AspNetCore.Builder;
|
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
|
using Microsoft.AspNetCore.HttpsPolicy;
|
|
using Microsoft.AspNetCore.HttpsPolicy;
|
|
|
|
|
+using Microsoft.EntityFrameworkCore;
|
|
|
using Microsoft.Extensions.Configuration;
|
|
using Microsoft.Extensions.Configuration;
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
using Microsoft.Extensions.Hosting;
|
|
using Microsoft.Extensions.Hosting;
|
|
@@ -8,6 +9,7 @@ using System;
|
|
|
using System.Collections.Generic;
|
|
using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
using System.Linq;
|
|
|
using System.Threading.Tasks;
|
|
using System.Threading.Tasks;
|
|
|
|
|
+using Warhammer.DataLayer;
|
|
|
|
|
|
|
|
namespace Warhammer
|
|
namespace Warhammer
|
|
|
{
|
|
{
|
|
@@ -24,6 +26,9 @@ namespace Warhammer
|
|
|
public void ConfigureServices(IServiceCollection services)
|
|
public void ConfigureServices(IServiceCollection services)
|
|
|
{
|
|
{
|
|
|
services.AddControllersWithViews();
|
|
services.AddControllersWithViews();
|
|
|
|
|
+
|
|
|
|
|
+ services.AddDbContext<DeathwatchDbContext>(options =>
|
|
|
|
|
+ options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
|
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|