Ejemplo n.º 1
0
        public ExamWorkUI()
        {
            var builder = new ConfigurationBuilder().SetBasePath(Directory.GetCurrentDirectory())
                          .AddJsonFile("appsettings.json", false, true);
            IConfigurationRoot configurationRoot = builder.Build();
            var ConnectionString = configurationRoot.GetConnectionString("DebugConnectionString");
            var ProviderName     = configurationRoot.GetSection("AppConfig").GetChildren().Single(item => item.Key == "ProviderName").Value;

            context      = new ExamWorkContext(ConnectionString, ProviderName);
            stockService = new StockService(context);
            searchUI     = new SearchUI(context);
        }
Ejemplo n.º 2
0
 public SearchUI(ExamWorkContext context)
 {
     this.context = context;
 }
Ejemplo n.º 3
0
 public StockService(ExamWorkContext context)
 {
     this.context = context;
 }