public AirlinesController() { if (WebConfigurationManager.AppSettings["UseMongoDB"].ToUpperInvariant() == "TRUE") { context = new MongoData(); } else { context = new BigDataData.EF.EfData(); } }
public Program() { if (ConfigurationManager.AppSettings["UseMongoDB"].ToUpperInvariant() == "TRUE") { context = new MongoData(); } else { context = new BigDataData.EF.EfData(); } }