Example #1
0
        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));
 }
Example #3
0
 public bool IsAllowed(EDatabaseMode databaseMode)
 {
     return GetAllowedDatabaseModes().Exists(mode => mode == databaseMode);
 }