public BikesDbContext() { _configuration = new BikesDbConfiguration() { BikesDbConnection = "Server=(LocalDB)\\MSSQLLocalDB;Database=BikesDb;Trusted_Connection=true;" }; }
public BikesDbContext(DbContextOptions <BikesDbContext> options, IOptions <BikesDbConfiguration> configOptions) : base(options) { _configuration = configOptions.Value; Database.EnsureCreated(); }