Exemple #1
0
        public StoreRepository(dbstoreContext context)
        {
            _context = context;
            IConfigurationBuilder builder = new ConfigurationBuilder().SetBasePath(Environment.CurrentDirectory)
                                            .AddJsonFile("appsettings.json", optional: true, reloadOnChange: true);

            _configuration    = builder.Build();
            _connectionString = _configuration.GetConnectionString("DBStore");
        }
Exemple #2
0
 public StoreRepository()
 {
     _context = new dbstoreContext();
 }