Add options services to Startup

This commit is contained in:
Hao Kung 2014-05-28 13:43:13 -07:00
parent 043dbb2940
commit 083601c539
1 changed files with 2 additions and 0 deletions

View File

@ -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();