-
Notifications
You must be signed in to change notification settings - Fork 475
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
ForeignKey properrty nullable=false not set #690
Comments
(just subscribing notifications as I was the one opening OData/odata.net#337) |
I don't think it's a bug. The nullable of foreign key is along with the nullable of its corresponding navigation property. So, If you mark the navigation property with [Required] attribute as follows:
you will get the following metadata: Thanks. |
0xced
added a commit
to 0xced/EntityFramework-Reverse-POCO-Code-First-Generator
that referenced
this issue
Jan 29, 2019
…otationsWithFluent is true Some context: the [Required] attribute must be set on foreign keys in order for OData.NET to properly generate its metadata document with nullable=false, see OData/WebApi#690
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Transferred from: OData/odata.net#337
The text was updated successfully, but these errors were encountered: