本文整理汇总了C#中CriteriaOperator.Accept方法的典型用法代码示例。如果您正苦于以下问题:C# CriteriaOperator.Accept方法的具体用法?C# CriteriaOperator.Accept怎么用?C# CriteriaOperator.Accept使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CriteriaOperator
的用法示例。
在下文中一共展示了CriteriaOperator.Accept方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Process
public void Process(CriteriaOperator operand, bool mustBeLogical)
{
if (ReferenceEquals(operand, null)) return;
if (mustBeLogical) {
if ((BooleanCriteriaState)operand.Accept(this) == BooleanCriteriaState.Value) throw new ArgumentException(MustBeLogical);
} else {
if ((BooleanCriteriaState)operand.Accept(this) == BooleanCriteriaState.Logical) throw new ArgumentException(MustBeArithmetical);
}
}
示例2: Validate
public void Validate(CriteriaOperator criteria)
{
if(!ReferenceEquals(criteria, null))
criteria.Accept(this);
}
示例3: Process
private CriteriaOperator Process(CriteriaOperator operand)
{
if (!ReferenceEquals(operand, null))
return (CriteriaOperator)operand.Accept(this);
return null;
}
示例4: GetSelectValue
// Возвращает формат агрегированного значения указанного выражения
public static string GetSelectValue(CriteriaOperator aggregateProperty, Aggregate aggregate, SelectSqlGeneratorBase generator)
{
string property = ReferenceEquals(aggregateProperty, null) ? "*" : (string)aggregateProperty.Accept(generator);
return String.Format(agg[(int)aggregate], property);
}
示例5: Accept
private object Accept(CriteriaOperator criteriaOperator)
{
if (ReferenceEquals(criteriaOperator, null))
{
return null;
}
object value = criteriaOperator.Accept(this);
return value == DBNull.Value ? null : value;
}
示例6: Process
public static object Process(CriteriaOperator op, List<XPMemberInfo> memberInfos) {
return op.Accept(new FullTextOperatorProcessor(memberInfos)) ;
}
示例7: GetCustomFunctionOperandValue
private OperandValue GetCustomFunctionOperandValue(CriteriaOperator theOperator){
var functionOperator = theOperator as FunctionOperator;
return !ReferenceEquals(functionOperator,null)? (functionOperator.OperatorType == FunctionOperatorType.Custom
? new OperandValue(theOperator.Accept(this)): null): null;
}