Ejemplo n.º 1
0
 private FieldFilterTerm(AttributeDefinition attributeDefinition, FieldFilterTermOperator op,
     IEnumerable<object> values)
 {
     AttributeDefinition = attributeDefinition;
     Operator = op;
     Values = values;
 }
Ejemplo n.º 2
0
 public static FieldFilterTerm NotExists(AttributeDefinition attributeDefinition)
 {
     return(new FieldFilterTerm(attributeDefinition, FieldFilterTermOperator.NotExists, Enumerable.Empty <object>()));
 }
Ejemplo n.º 3
0
 internal override Expression CreateExpression(Expression parameter)
 {
     return(AttributeDefinition.CreateFilterExpression(Operator, Values, parameter));
 }
Ejemplo n.º 4
0
 internal bool TryGetAttributeDefinition(AssetType assetType, string attributeNameToken, out AttributeDefinition attributeDefinition)
 {
     string key = $"{assetType.Token}.{attributeNameToken}";
     return TryGetAttributeDefinition(key, out attributeDefinition);
 }
Ejemplo n.º 5
0
        internal bool TryGetAttributeDefinition(AssetType assetType, string attributeNameToken, out AttributeDefinition attributeDefinition)
        {
            string key = $"{assetType.Token}.{attributeNameToken}";

            return(TryGetAttributeDefinition(key, out attributeDefinition));
        }
 internal override AttributeDefinition CreateJoinAttributeDefinition(AttributeDefinition relatedAttributeDefinition)
 {
     return(new JoinedAttributeDefinition(this, relatedAttributeDefinition));
 }
Ejemplo n.º 7
0
 public static FieldFilterTerm GreaterOrEqual(AttributeDefinition attributeDefinition, IEnumerable<object> values)
 {
     return new FieldFilterTerm(attributeDefinition, FieldFilterTermOperator.GreaterOrEqual, values);
 }
Ejemplo n.º 8
0
 public static FieldFilterTerm NotExists(AttributeDefinition attributeDefinition)
 {
     return new FieldFilterTerm(attributeDefinition, FieldFilterTermOperator.NotExists, Enumerable.Empty<object>());
 }
 public AggregateCountAttributeDefinition(AttributeDefinition left) : base(left, "@Count")
 {
 }
 protected BaseAggregateAttributeDefinition(AttributeDefinition left, string suffix)
     : base(left.AssetType, left.Name + "." + suffix, false, null, false)
 {
     _left = left;
 }
Ejemplo n.º 11
0
 internal virtual AttributeDefinition CreateJoinAttributeDefinition(AttributeDefinition relatedAttributeDefinition)
 {
     throw new NotSupportedException($"Cannot join {Token} to {relatedAttributeDefinition.Token}");
 }
 public JoinedAttributeDefinition(AttributeDefinition left, AttributeDefinition right)
     : base(left.AssetType, left.Name + "." + right.Name, right.IsNullable, right.RelatedAssetType, left.IsMultiValue || right.IsMultiValue)
 {
     _left = left;
     _right = right;
 }
Ejemplo n.º 13
0
 public JoinedAttributeDefinition(AttributeDefinition left, AttributeDefinition right)
     : base(left.AssetType, left.Name + "." + right.Name, right.IsNullable, right.RelatedAssetType, left.IsMultiValue || right.IsMultiValue)
 {
     _left  = left;
     _right = right;
 }
Ejemplo n.º 14
0
 internal virtual AttributeDefinition CreateJoinAttributeDefinition(AttributeDefinition relatedAttributeDefinition)
 {
     throw new NotSupportedException($"Cannot join {Token} to {relatedAttributeDefinition.Token}");
 }
Ejemplo n.º 15
0
 public static FieldFilterTerm Less(AttributeDefinition attributeDefinition, IEnumerable <object> values)
 {
     return(new FieldFilterTerm(attributeDefinition, FieldFilterTermOperator.Less, values));
 }
Ejemplo n.º 16
0
 public static FieldFilterTerm GreaterOrEqual(AttributeDefinition attributeDefinition, IEnumerable <object> values)
 {
     return(new FieldFilterTerm(attributeDefinition, FieldFilterTermOperator.GreaterOrEqual, values));
 }
 public AggregateSumAttributeDefinition(AttributeDefinition left) : base(left, "@Sum")
 {
 }
Ejemplo n.º 18
0
 public static FieldFilterTerm Less(AttributeDefinition attributeDefinition, IEnumerable<object> values)
 {
     return new FieldFilterTerm(attributeDefinition, FieldFilterTermOperator.Less, values);
 }
 public AggregateMaxAttributeDefinition(AttributeDefinition left) : base(left, "@Max")
 {
 }
 public AggregateMinAttributeDefinition(AttributeDefinition left) : base(left, "@Min")
 {
 }
Ejemplo n.º 21
0
 internal bool TryGetAttributeDefinition(string attributeDefinitionToken, out AttributeDefinition attributeDefinition)
 {
     return _attributeDefinitions.TryGetValue(attributeDefinitionToken, out attributeDefinition);
 }
 internal override AttributeDefinition CreateJoinAttributeDefinition(AttributeDefinition relatedAttributeDefinition)
 {
     return new JoinedAttributeDefinition(this, relatedAttributeDefinition);
 }
Ejemplo n.º 23
0
 internal bool TryGetAttributeDefinition(string attributeDefinitionToken, out AttributeDefinition attributeDefinition)
 {
     return(_attributeDefinitions.TryGetValue(attributeDefinitionToken, out attributeDefinition));
 }