using Microsoft.EntityFrameworkCore; using System.Configuration; namespace BookStore { public class BookStoreContext : DbContext { public DbSet Books { get; set; } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { optionsBuilder.UseSqlServer(ConfigurationManager.ConnectionStrings["gr606_pokse"].ConnectionString); } } }