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 }); } }
public bool ContainsField(string fieldId) { return(_individualFields.ContainsKey(fieldId)); }