diff --git a/tp1/DbContextLib/LibraryContext.cs b/tp1/DbContextLib/LibraryContext.cs index 2985321..1f8d92e 100644 --- a/tp1/DbContextLib/LibraryContext.cs +++ b/tp1/DbContextLib/LibraryContext.cs @@ -3,15 +3,18 @@ using Entities; namespace DbContextLib { + public class LibraryContext: DbContext { - public DbSet BookSet{ get; set; } + public DbSet BooksSet{ get; set; } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { - optionsBuilder.UseSqlite($"Data Source=data.Books.db"); + optionsBuilder.UseSqlite($"Data Source=tp1.Books.db"); } + } + } diff --git a/tp1/StubbedContextLib/StubbedContext.cs b/tp1/StubbedContextLib/StubbedContext.cs index 65e6ff1..b2e65bd 100644 --- a/tp1/StubbedContextLib/StubbedContext.cs +++ b/tp1/StubbedContextLib/StubbedContext.cs @@ -1,7 +1,11 @@ -namespace StubbedContextLib +using Entities; +using Microsoft.EntityFrameworkCore; + +namespace StubbedContextLib { - public class StubbedContext + public class StubbedContext : DbContext { + } }