internal string GetDatabaseId(EDbType databaseType, EDatabaseMode databaseMode) { string found = null; foreach (var dbType in this) { foreach (var database in dbType.Databases) { if (dbType.DbType == databaseType && database.DbMode == databaseMode) { found = database.Id; break; } } if (found != null) { break; } } return(found); }
public bool IsAllowed(EDatabaseMode databaseMode) { return(GetAllowedDatabaseModes().Exists(mode => mode == databaseMode)); }
public bool IsAllowed(EDatabaseMode databaseMode) { return GetAllowedDatabaseModes().Exists(mode => mode == databaseMode); }