public MultiRelationAttributeDefinition(Type type, PropertyInfo property, Type relatedType, AssetType assetType, AssetType relatedAssetType, FilterTerm filterTerm) : base(assetType, property.Name+"["+filterTerm+"]", false, relatedAssetType, true) { _type = type; _property = property; _relatedType = relatedType; _filterTerm = filterTerm; }
public MultiRelationAttributeDefinition(Type type, PropertyInfo property, Type relatedType, AssetType assetType, AssetType relatedAssetType, FilterTerm filterTerm) : base(assetType, property.Name + "[" + filterTerm + "]", false, relatedAssetType, true) { _type = type; _property = property; _relatedType = relatedType; _filterTerm = filterTerm; }
public Query(AssetType assetType, IEnumerable<AttributeDefinition> selection, FilterTerm filter, IEnumerable<OrderTerm> orderTerms, int? skip, int? take, MetaModel metaModel) { AssetType = assetType; Selection = selection; Filter = filter; OrderTerms = orderTerms; Skip = skip; Take = take; MetaModel = metaModel; }
internal override AttributeDefinition CreateFilteredAttributeDefinition(FilterTerm filterTerm) { return new MultiRelationAttributeDefinition(_type, _property, _relatedType, AssetType, RelatedAssetType, filterTerm); }
internal override AttributeDefinition CreateFilteredAttributeDefinition(FilterTerm filterTerm) { return(new MultiRelationAttributeDefinition(_type, _property, _relatedType, AssetType, RelatedAssetType, filterTerm)); }
public void Add(FilterTerm term) => _terms.Add(term);
internal virtual AttributeDefinition CreateFilteredAttributeDefinition(FilterTerm filterTerm) { throw new NotSupportedException($"Cannot filter {Token} for {filterTerm}"); }