Skip to content

Error when calling static method with namespace qualification #85

@Bretttt

Description

@Bretttt

I created a static method

public static class Functions
{
    [Projectable]
    public static int Foo(int v1, int v2) => v1 + v2;
}

and an entity

public class MyEntity
{
    public int Prop1 { get; set; }
    public int Prop2 { get; set; }

    [Projectable]
    public int Projection => Functions.Foo(Prop1, Prop2);
}

Everything works fine.

However, when I qualify the method call using the namespace,

public class MyEntity
{
    public int Prop1 { get; set; }
    public int Prop2 { get; set; }

    [Projectable]
    public int Projection => My.Namespace.Functions.Foo(Prop1, Prop2);
}

It fails.

'Unable to resolve generated expression for MyEntity.Projection'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions