Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

One-to-one relation in EFCore #71

Closed
Tristan-gu opened this issue Apr 23, 2019 · 2 comments
Closed

One-to-one relation in EFCore #71

Tristan-gu opened this issue Apr 23, 2019 · 2 comments
Labels
bug Confirmed bug released Issue is resolved in a current release

Comments

@Tristan-gu
Copy link

Hi,

I'm trying to understand one-to-one relation, and tried this sample.

I have this model
image

Where Student is the principal item in the model.

And I have this result in my SQLite DB:
image

I should have student_Id column in the StudentAddress table isn't it ?

@Tristan-gu
Copy link
Author

Seems to be a bug in the context generator.
This relation
image

should be
image

@msawczyn msawczyn added bug Confirmed bug pending release Issue is resolved in the current codebase, will be published with the next release labels Apr 28, 2019
@msawczyn
Copy link
Owner

Spot on - thanks! Fixing for 2.7.2.

@msawczyn msawczyn added this to the 2.7.2 milestone Apr 28, 2019
@msawczyn msawczyn added released Issue is resolved in a current release and removed pending release Issue is resolved in the current codebase, will be published with the next release labels Apr 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Confirmed bug released Issue is resolved in a current release
Projects
None yet
Development

No branches or pull requests

2 participants