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.Framework.ConfigurationModel;
|
||||
using Microsoft.Framework.DependencyInjection;
|
||||
using Microsoft.Framework.OptionsModel;
|
||||
using MusicStore.Models;
|
||||
|
||||
namespace MusicStore
|
||||
|
|
@ -27,6 +28,7 @@ namespace MusicStore
|
|||
|
||||
app.UseServices(services =>
|
||||
{
|
||||
services.Add(OptionsServices.GetDefaultServices());
|
||||
// Add EF services to the services container
|
||||
services.AddEntityFramework()
|
||||
.AddSqlServer();
|
||||
|
|
|
|||
Loading…
Reference in New Issue