|
|
@ -3,15 +3,18 @@ using Entities;
|
|
|
|
|
|
|
|
|
|
|
|
namespace DbContextLib
|
|
|
|
namespace DbContextLib
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
public class LibraryContext: DbContext
|
|
|
|
public class LibraryContext: DbContext
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public DbSet<BookEntity> BookSet{ get; set; }
|
|
|
|
public DbSet<BookEntity> BooksSet{ get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
|
|
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
optionsBuilder.UseSqlite($"Data Source=data.Books.db");
|
|
|
|
optionsBuilder.UseSqlite($"Data Source=tp1.Books.db");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|