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

Remove overriding of relational annotations #8512

Merged
merged 1 commit into from
May 19, 2017
Merged

Remove overriding of relational annotations #8512

merged 1 commit into from
May 19, 2017

Conversation

ajcvickers
Copy link
Member

Part of #7166

Since we now build one model per database provider there is no need to allow relational and provider-specific overrides to exist together in the same model. This means that any relational annotation will always be prefixed with "Relational:" and never with, for example, "SqlServer:". Provider-specific annotations still use the provider prefix.

This particularly advantageous for the consumer, since to read, for example, the table name, a consumer only ever needs to read entityType.Relational().TableName; instead of having to handle the case where it has been overridden for the current provider.

Note: there is other API (e.g. ForSqlServerTableName) than can also be removed; that will be part of another PR.

Breaking change baselines not updated yet.

Part of #7166

Since we now build one model per database provider there is no need to allow relational and provider-specific overrides to exist together in the same model. This means that any relational annotation will always be prefixed with "Relational:" and never with, for example, "SqlServer:". Provider-specific annotations still use the provider prefix.

This particularly advantageous for the consumer, since to read, for example, the table name, a consumer only ever needs to read `entityType.Relational().TableName;` instead of having to handle the case where it has been overridden for the current provider.

Note: there is other API (e.g. ForSqlServerTableName) than can also be removed; that will be part of another PR.
@bricelam
Copy link
Contributor

😍 It's beautiful

@smitpatel smitpatel deleted the NineRings0515 branch May 19, 2017 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants