OData / OData/AspNetCoreOData

.HasComputed().IsComputed(true) throw error for enum values

Open
#508 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

follow-up
Dominant language
C#
Stars
505
Forks
186
PR merge metrics
No merged PRs in 30d

Description

entity.Property(x=>x.MyEnumValue).HasComputed().IsComputed(true) throws error that MyEnumValue is not a basetype.

public MyEnum MyEnumValue {get;set;}

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 by reproducing the reported entity.Property(x=>x.MyEnumValue).HasComputed().IsComputed(true) case with the shown MyEnum property and trace where the enum is rejected as not a basetype. Done means the computed-property configuration accepts enum values without throwing the reported error; no specific source file or test is named in the issue.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.