예제 #1
0
 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);
 }
예제 #2
0
 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();
 }
예제 #3
0
 public static bool Equals(string typeStr, EOraclePrivilege type)
 {
     return(Equals(type, typeStr));
 }