MySql.Data.MySqlClient.SchemaProvider.CleanRestrictions C# (CSharp) Method

CleanRestrictions() private method

private CleanRestrictions ( string restrictionValues ) : string[]
restrictionValues string
return string[]
        internal string[] CleanRestrictions(string[] restrictionValues)
        {
            string[] restrictions = null;
            if (restrictionValues != null)
            {
                restrictions = (string[])restrictionValues.Clone();

                for (int x = 0; x < restrictions.Length; x++)
                {
                    string s = restrictions[x];
                    if (s == null) continue;
                    restrictions[x] = s.Trim('`');
                }
            }
            return restrictions;
        }
    }

Usage Example

Exemplo n.º 1
0
        public MySqlSchemaCollection GetSchemaCollection(string collectionName, string[] restrictionValues)
        {
            if (collectionName == null)
            {
                collectionName = SchemaProvider.MetaCollection;
            }

            string[] restrictions   = _schemaProvider.CleanRestrictions(restrictionValues);
            MySqlSchemaCollection c = _schemaProvider.GetSchema(collectionName, restrictions);

            return(c);
        }
All Usage Examples Of MySql.Data.MySqlClient.SchemaProvider::CleanRestrictions