Skip to content

LINQ query dynamic component by interface hangs the application #3150

Closed
@nfplee

Description

@nfplee

I have the following query which executes fine:

var posts = await session.Query<BlogPost>()
    .Where(p => p.Attributes["Field1"] != null)
   .ToListAsync();

However if I change it to use an interface instead then the query hangs.

var posts = await session.Query<IBlogPost>()
    .Where(p => p.Attributes["Field1"] != null)
    .ToListAsync();

Please see the attached application which helps demonstrate this. This problem only happens when filtering against an attribute.

ConsoleApp1.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions