Пример #1
0
        }                                                              // Primary/default db connection string. If i need one.

        public bool IsEnvironModeLike(EnvironMode environMode)
        {
            // Prefix match EnvironMode.
            // match EnvironMode but allow extension. e.g. Dev1 is the same as Dev
            if (EnvironMode == null)
            {
                return(false);
            }
            return(EnvironMode.ToUpper().StartsWith(environMode.ToString()));
        }
Пример #2
0
 public bool IsEnvironMode(EnvironMode environMode)
 {
     // Exact match EnvironMode
     return(IsEnvironMode(environMode.ToString()));
 }