Add options services to Startup
This commit is contained in:
parent
043dbb2940
commit
083601c539
|
|
@ -9,6 +9,7 @@ using Microsoft.AspNet.Security.Cookies;
|
||||||
using Microsoft.Data.Entity;
|
using Microsoft.Data.Entity;
|
||||||
using Microsoft.Framework.ConfigurationModel;
|
using Microsoft.Framework.ConfigurationModel;
|
||||||
using Microsoft.Framework.DependencyInjection;
|
using Microsoft.Framework.DependencyInjection;
|
||||||
|
using Microsoft.Framework.OptionsModel;
|
||||||
using MusicStore.Models;
|
using MusicStore.Models;
|
||||||
|
|
||||||
namespace MusicStore
|
namespace MusicStore
|
||||||
|
|
@ -27,6 +28,7 @@ namespace MusicStore
|
||||||
|
|
||||||
app.UseServices(services =>
|
app.UseServices(services =>
|
||||||
{
|
{
|
||||||
|
services.Add(OptionsServices.GetDefaultServices());
|
||||||
// Add EF services to the services container
|
// Add EF services to the services container
|
||||||
services.AddEntityFramework()
|
services.AddEntityFramework()
|
||||||
.AddSqlServer();
|
.AddSqlServer();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue