Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace NotImplementedException with NotSupportedException #23502

Merged
merged 2 commits into from
Dec 20, 2020

Conversation

ajcvickers
Copy link
Member

Fixes #20961

You might choose to throw a NotImplementedException exception in properties or methods in your own types when the that member is still in development and will only later be implemented in production code. In other words, a NotImplementedException exception should be synonymous with "still in development."

I left one NotImplementedException in Migration.cs, because it really is there for when the application hasn't implemented Down yet, but tries to do a Down.

@ajcvickers ajcvickers requested a review from a team November 26, 2020 20:01
Fixes #20961

> You might choose to throw a NotImplementedException exception in properties or methods in your own types when the that member is still in development and will only later be implemented in production code. In other words, a NotImplementedException exception should be synonymous with "still in development."

I left one NotImplementedException in Migration.cs, because it really is there for when the application hasn't implemented Down yet, but tries to do a Down.
@ajcvickers ajcvickers force-pushed the WillNeverBeImplementedException branch from 2d43b9f to 97f2d50 Compare December 18, 2020 00:14
@ajcvickers ajcvickers requested a review from a team December 18, 2020 00:16
@ajcvickers
Copy link
Member Author

@dotnet/efteam Updated based on design meeting discussion. All are NotSupportedExceptions, with messages where it could be helpful.

@ajcvickers ajcvickers merged commit 7a8cb44 into main Dec 20, 2020
@ajcvickers ajcvickers deleted the WillNeverBeImplementedException branch December 20, 2020 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NotImplementedException is used in wrong meaning in EFCore DbSet class
3 participants