Prevent DbContext.Set<T>() from creating sets for types not in the model #4301
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
Currently we create sets for any type... but they fail ungracefully if used to do anything (NullReferenceException etc.). We should just throw in the Set method if T is not in the model.
The text was updated successfully, but these errors were encountered: