-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Improve exception messages #23080
Improve exception messages #23080
Conversation
@@ -623,7 +623,10 @@ | |||
<value>No value was provided for the required parameter '{parameter}'.</value> | |||
</data> | |||
<data name="ModificationCommandInvalidEntityState" xml:space="preserve"> | |||
<value>Cannot save changes for an entity in state '{entityState}'.</value> | |||
<value>Cannot save changes for an entity of type '{entityType} in state '{entityState}'. This may indicate a bug in Entity Framework, please report it. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the key values of the entity.</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<value>Cannot save changes for an entity of type '{entityType} in state '{entityState}'. This may indicate a bug in Entity Framework, please report it. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the key values of the entity.</value> | |
<value>Cannot save changes for an entity of type '{entityType}' in state '{entityState}'. This may indicate a bug in Entity Framework, please report it. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the key values of the entity.</value> |
I think we have a fwlink for please report it some other exception messages. We should copy that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I though we did, but I cannot find it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
efcore/src/EFCore/Properties/CoreStrings.resx
Lines 190 to 192 in 5ff9243
<data name="CannotConvertQueryableToEnumerableMethod" xml:space="preserve"> | |
<value>Unable to convert a queryable method to an enumerable method. This is likely an issue in Entity Framework, please file an issue at https://go.microsoft.com/fwlink/?linkid=2142044.</value> | |
</data> |
src/EFCore.SqlServer/Update/Internal/SqlServerModificationCommandBatch.cs
Outdated
Show resolved
Hide resolved
0b3bb01
to
d42f304
Compare
d42f304
to
1f3d520
Compare
Hello @AndriySvyryd! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
Part of #7201
1f3d520
to
17510f5
Compare
Part of #7201