Skip to content

Community Request: Enable Field class to Parse the Expression for Multiple Properties #453

@mikependon

Description

@mikependon

A request from a community. Currently, if you are using a Field class as the target fields for Query and/or a qualifiers for BulkOperations or etc, then you are calling following methods.

var fields = Field.From("Field1", "Field2", "Field3", ...);

In which it is literal and not compiler friendly. In addition, the Expression below only supports single property parsing.

var fields = Field.Parse<T>(e => e.Field1).AsEnumerable();

Proposal:

The Field.Parse<T>() method must be modified to always return the IEnumerable<Field> (breaking changes) and must allow the parsing of multiple properties like below.

var fields = Field.Parse<T>(e => new { e.Field1, e.Field2, e.Field3, ... });

Metadata

Metadata

Assignees

Labels

deployedFeature or bug is deployed at the current releaseenhancementNew feature or requestrequestA request from the community.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions