Commit ce4fee4c authored by Steve Smith's avatar Steve Smith

parent 38f2e9ad
...@@ -34,8 +34,8 @@ namespace CleanArchitecture.Web ...@@ -34,8 +34,8 @@ namespace CleanArchitecture.Web
// TODO: Add DbContext and IOC // TODO: Add DbContext and IOC
services.AddDbContext<AppDbContext>(options => services.AddDbContext<AppDbContext>(options =>
//options.UseInMemoryDatabase(Guid.NewGuid().ToString())); options.UseInMemoryDatabase("database"));
options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection"))); //options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
services.AddMvc() services.AddMvc()
.AddControllersAsServices(); .AddControllersAsServices();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment