-
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
Shadow property naming docs are incorrect #6655
Comments
@mikebrind - Which version of EF are you using? For Triage: This could be a breaking change. |
@smitpatel I'm using 1.0.0: "dependencies": {
"Microsoft.Extensions.Configuration": "1.0.0",
"Microsoft.Extensions.Configuration.FileExtensions": "1.0.0",
"Microsoft.Extensions.Configuration.Json": "1.0.0",
"Microsoft.EntityFrameworkCore.SqlServer": "1.0.0",
"Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview2-final",
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.0"
}
}, |
@smitpatel to verify if we changed the naming between 1.0 and 1.1 |
@rowanmiller - RTM generates |
Steps to reproduce
Create the model as detailed in the documentation on shadow properties here: https://ef.readthedocs.io/en/latest/modeling/shadow-properties.html#conventions
Then add a migration.
The issue
The database column and therefore the shadow property for the foreign key in the Posts table is named 'BlogId' instead of BlogBlogId contrary to the documentation:
Is the bug in the documentation or the framework?
The text was updated successfully, but these errors were encountered: