示例#1
0
        public void AddProjection(string fieldName, IEvaluable field)
        {
            if (field is BinaryExpression)
            {
                fieldName = ((BinaryExpression)field).Alias;
            }

            if (!_projections.ContainsKey(fieldName))
            {
                _projections.Add(fieldName, field);
            }
            else
            {
                throw new QuerySystemException(ErrorCodes.Query.QUERYCRITERIA_FIELD_ALREADY_EXISTS, new[] { fieldName });
            }
        }
示例#2
0
 public bool ContainsField(string fieldId)
 {
     return(_individualFields.ContainsKey(fieldId));
 }