mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Build fixes following .NET Core 2.0 update
This commit is contained in:
@@ -28,7 +28,7 @@ namespace MusicStore
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Add EF services to the service container
|
// Add EF services to the service container
|
||||||
services.AddEntityFramework()
|
services
|
||||||
.AddEntityFrameworkSqlite()
|
.AddEntityFrameworkSqlite()
|
||||||
.AddDbContext<MusicStoreContext>(options => {
|
.AddDbContext<MusicStoreContext>(options => {
|
||||||
options.UseSqlite("Data Source=music-db.sqlite");
|
options.UseSqlite("Data Source=music-db.sqlite");
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ namespace MusicStore
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Add EF services to the service container
|
// Add EF services to the service container
|
||||||
services.AddEntityFramework()
|
services
|
||||||
.AddEntityFrameworkSqlite()
|
.AddEntityFrameworkSqlite()
|
||||||
.AddDbContext<MusicStoreContext>(options => {
|
.AddDbContext<MusicStoreContext>(options => {
|
||||||
options.UseSqlite("Data Source=music-db.sqlite");
|
options.UseSqlite("Data Source=music-db.sqlite");
|
||||||
|
|||||||
Reference in New Issue
Block a user