예제 #1
0
        public static string ParseWildCard(string fieldName, string fieldValue, WildCardDefinitionCollection wildCardDefinitions)
        {
            string             result             = string.Empty;
            WildCardDefinition wildCardDefinition = wildCardDefinitions.Find(delegate(WildCardDefinition wcd) { return(wcd.FieldName == fieldName); });

            if (wildCardDefinition != null)
            {
                result = ParseWildCard(fieldValue, wildCardDefinition.WildCardType, wildCardDefinition.WildCardFieldType);
            }
            else
            {
                result = fieldValue;
            }

            return(result);
        }
예제 #2
0
        public static string ParseOperator(string fieldName, WildCardDefinitionCollection wildCardDefinitions)
        {
            string             result             = string.Empty;
            WildCardDefinition wildCardDefinition = wildCardDefinitions.Find(delegate(WildCardDefinition wdc) { return(wdc.FieldName == fieldName); });

            if (wildCardDefinition != null)
            {
                result = ParseOperator(wildCardDefinition.WildCardType, wildCardDefinition.WildCardFieldType);
            }
            else
            {
                result = " = ";
            }

            return(result);
        }