public static bool Equals(EOraclePrivilege type, string typeStr) { if (string.IsNullOrEmpty(typeStr)) { return(false); } if (string.Equals(GetValue(type).ToLower(), typeStr.ToLower())) { return(true); } return(false); }
public static string GetValue(EOraclePrivilege type) { if (type == EOraclePrivilege.Normal) { return("Normal"); } if (type == EOraclePrivilege.SYSDBA) { return("SYSDBA"); } if (type == EOraclePrivilege.SYSOPER) { return("SYSOPER"); } throw new Exception(); }
public static bool Equals(string typeStr, EOraclePrivilege type) { return(Equals(type, typeStr)); }