コード例 #1
0
 /// <summary>
 /// Method that setup all collection of the database with POCO
 /// </summary>
 public void init()
 {
     // entities
     logAdministrative = new LogAdministrativeFactory(db);
     logService        = new LogServiceFactory(db);
     state             = new StateFactory(db);
     municipality      = new MunicipalityFactory(db);
     weatherStation    = new WeatherStationFactory(db);
     crop               = new CropFactory(db);
     cultivar           = new CultivarFactory(db);
     soil               = new SoilFactory(db);
     historicalClimatic = new HistoricalClimaticFactory(db);
     historicalYield    = new HistoricalYieldFactory(db);
     climatology        = new ClimatologyFactory(db);
     forecast           = new ForecastFactory(db);
     forecastClimate    = new ForecastClimateFactory(db);
     forecastYield      = new ForecastYieldFactory(db);
     forecastScenario   = new ForecastScenarioFactory(db);
     user               = new UserFactory(db);
     role               = new RoleFactory(db);
     source             = new SourceFactory(db);
     // views
     views = new ViewsFactory(db);
 }
コード例 #2
0
 /// <summary>
 /// Method Construct
 /// </summary>
 /// <param name="path_log">Path log</param>
 /// <param name="logDB">Factory instance to save data in the database</param>
 public Log(string path_log, LogAdministrativeFactory factory)
 {
     path = path_log;
     db   = factory;
 }