Commit 7a8475cd authored by Steve Smith's avatar Steve Smith

Cleaning up

parent ca137027
...@@ -36,10 +36,8 @@ namespace CleanArchitecture.Web ...@@ -36,10 +36,8 @@ namespace CleanArchitecture.Web
// TODO: Add DbContext and IOC // TODO: Add DbContext and IOC
string dbName = Guid.NewGuid().ToString(); string dbName = Guid.NewGuid().ToString();
// create schema before using:
// https://www.meziantou.net/2017/09/11/testing-ef-core-in-memory-using-sqlite
services.AddDbContext<AppDbContext>(options => services.AddDbContext<AppDbContext>(options =>
options.UseSqlite("Data Source=database.sqlite")); options.UseSqlite("Data Source=database.sqlite")); // will be created in web project root
// options.UseInMemoryDatabase(dbName)); // options.UseInMemoryDatabase(dbName));
//options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection"))); //options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
......
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