Skip to content

Generation Fails When Referencing Inherited Properties #10

@AinoraZ

Description

@AinoraZ

Seems that the source generator does not pick up inherited properties.

public class ReproductionEntity : BaseEntity
{
    [Projectable]
    public int TotalChildren => Children.Count;
}

Will fail at build time with The name 'Children' does not exist in the current context.
Attaching minimal reproduction project. Minimal Reproduction.zip

EF Core version: 6.0.0
Projectables version: 2.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions