Skip to content
This repository was archived by the owner on Jan 8, 2020. It is now read-only.
This repository was archived by the owner on Jan 8, 2020. It is now read-only.

Additional analyzer checks #2

@jumpinjackie

Description

@jumpinjackie

The analyzer should check that an Expression<Func<T, bool>> is being passed inside navigation properties from an IQueryable

For example, this fragment will fail at runtime with internal data error provider

DbSet source = ...;
Func<T, bool> myFunc = ...;
source.Where(a => a.Items.Any(myFunc));

Whereas this fragment will not.

DbSet source = ...;
Expression<Func<T, bool>> myFunc = ...;
source.Where(a => a.Items.AsQueryable().Any(myFunc));

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