microsoft / microsoft/RulesEngine

Support for Any-Operator on List-Types

Open
#598 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
4.4k
Forks
616
Avg merge
6m
Merged PRs (30d)
2

Description

Are there any plans to support access to properties on Lists like resource.Users.Name? Currently you get the exception "No property or field 'Name' exists in type 'List`1'". Which directs me to the problem, that the MemberExpression builder does not note the List-Type and tries to just build the expression just as usually.

At this point we would need an interception to the Any-Method and then build the nested (Sub)Expression for the generic type of the list. Afterwards it needs to be set as expression to the Any-Method call of the List (Users).

Are there any plans to support this? Maybe for the first level or even for nested lists with chained Any-Method-Calls?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the MemberExpression builder, where the issue reports that List properties are handled like ordinary members. Trace how an Any method call and the nested expression for the list's generic type are built. Done would require an agreed scope for first-level or chained nested lists, with coverage for the supported cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.