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;
 }
Beispiel #3
0
 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));
 }
Beispiel #6
0
 public void Add(FilterTerm term) => _terms.Add(term);
Beispiel #7
0
 public void Add(FilterTerm term) => _terms.Add(term);
 internal virtual AttributeDefinition CreateFilteredAttributeDefinition(FilterTerm filterTerm)
 {
     throw new NotSupportedException($"Cannot filter {Token} for {filterTerm}");
 }
 internal virtual AttributeDefinition CreateFilteredAttributeDefinition(FilterTerm filterTerm)
 {
     throw new NotSupportedException($"Cannot filter {Token} for {filterTerm}");
 }