Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

ajcvickers
Copy link
Contributor

Fixes #31513

@ajcvickers ajcvickers requested a review from a team August 20, 2023 10:42
{
throw new InvalidOperationException(
CoreStrings.NullRequiredPrimitiveCollection(EntityType.DisplayName(), property.Name));
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should also throw for null complex properties

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do, but needs a bit of extra work first to stop it throwing from the change tracker.

@ajcvickers ajcvickers merged commit 0d590c8 into release/8.0 Aug 20, 2023
@ajcvickers ajcvickers deleted the 230819_NullMetalHammer branch August 20, 2023 12:36
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.

Assertion failure when saving entity without setting primitive required collection property
2 participants