} // 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())); }
public bool IsEnvironMode(EnvironMode environMode) { // Exact match EnvironMode return(IsEnvironMode(environMode.ToString())); }