Skip to content

.net 9 In Clause throws exception #20

@luciusli

Description

@luciusli
int[] ids = [1, 2, 3];
List<Post> posts = context.Set<Post>().Where(e => ids.Contains(e.Id)).ToList();

throws System.InvalidOperationException: 'Expression '@__ids_0' in the SQL tree does not have a type mapping assigned.'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions