Skip to content

Is nullable annotation of DbSet.Find{Async} correct? #25122

Closed

Description

Ask a question

Currently, the key values in Find/FindAsync is annotated as object[]? keyValues. It looks wrong to me.
It's meaningless to pass a null array. But for a composed key, one member can be null (SQL Server allows me to do so). So the correct annotation could be object?[].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions