示例#1
0
    public static DatabaseConnection GetDatabaseConnection(string DatabaseName)
    {
        HROneConfig        configure = HROneConfig.GetCurrentHROneConfig();
        DatabaseConnection DBType    = configure.GetDatabaseConnection(DatabaseName);

        return(DBType);
    }
示例#2
0
    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);
    }