Updating AddEntityFramework call to not use nested closure.
This commit is contained in:
parent
9434bbc8e3
commit
66b06950d5
|
|
@ -46,8 +46,8 @@ public class Startup
|
||||||
|
|
||||||
/*Add all EF related services to IoC.
|
/*Add all EF related services to IoC.
|
||||||
Using an InMemoryStore in K until SQL server is available.*/
|
Using an InMemoryStore in K until SQL server is available.*/
|
||||||
services.AddEntityFramework(s => s.AddSqlServer());
|
services.AddEntityFramework().AddSqlServer();
|
||||||
services.AddEntityFramework(s => s.AddInMemoryStore());
|
services.AddEntityFramework().AddInMemoryStore();
|
||||||
services.AddTransient<MusicStoreContext>();
|
services.AddTransient<MusicStoreContext>();
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue