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

Be explicit about type mappings being available on the finalized model #16178

Merged
merged 1 commit into from
Jun 20, 2019

Conversation

ajcvickers
Copy link
Contributor

@ajcvickers ajcvickers commented Jun 20, 2019

Part of #15662
Fixes #14433

The GetTypeMapping and GetRelationalTypeMapping methods will throw if there isn't a type mapping annotated on the model. Model finalization ensures that this is true.

Find methods still exist for cases where they need to be called before the model is finalized, and also so as not to break when not needed. However, see #16177

Part of #15663
Fixes #14433

The `GetTypeMapping` and `GetRelationalTypeMapping` methods will throw if there isn't a type mapping annotated on the model. Model finalization ensures that this is true.

Find methods still exist for cases where they need to be called before the model is finalized, and also so as not to break when not needed. However, see #16177
@ajcvickers ajcvickers merged commit dfe3110 into master Jun 20, 2019
@ghost ghost deleted the BellyOfTheBeast0617 branch June 20, 2019 21:24
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.

Ensure TypeMapping is always present on IProperty
2 participants