ODataConventionModelBuilder should map private set/init/constructor only to computed
Open
Nobody has claimed this yet.
feature
- Dominant language
- C#
- Stars
- 505
- Forks
- 186
- PR merge metrics
- No merged PRs in 30d
Description
All of these should map properly, and be equivalent to setting the entity.Property(x=>x.NumberOfChildren).HasComputed().IsComputed(true)
public int NumberOfChildren1 => 12;
public int NumberOfChildren2 { get; }
public int NumberOfChildren3 { get; init; }
public int NumberOfChildren3 { get; private set; }
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating ODataConventionModelBuilder and the convention logic that classifies properties with private setters, init accessors, getters only, or expression-bodied members. Add or update coverage for the four examples so each is equivalent to HasComputed().IsComputed(true), then run the relevant model-builder tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100