public static DatabaseConnection GetDatabaseConnection(string DatabaseName) { HROneConfig configure = HROneConfig.GetCurrentHROneConfig(); DatabaseConnection DBType = configure.GetDatabaseConnection(DatabaseName); return(DBType); }
public static DatabaseConnection GetDatabaseConnection() { HROneSaaSConfig config = HROneSaaSConfig.GetCurrentConfig(); if (System.IO.File.Exists(config.HROneConfigFullPath)) { HROneConfig HROneConfig = new HROneConfig(config.HROneConfigFullPath); return(HROneConfig.GetDatabaseConnection()); } return(null); }