Skip to content
This repository was archived by the owner on Dec 20, 2018. It is now read-only.
This repository was archived by the owner on Dec 20, 2018. It is now read-only.

EF Core stores: Switch to FindAsync() instead of FirstAsync() or SingleAsync() as appropriate #975

@divega

Description

@divega

Find() (added to EF Core in 1.1) can return objects already in memory without performing a database roundtrip. We are also unnecessarily using SingleOrDefault() in some cases in comparisons by key which would never return more than one row.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions