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

Generattion for One to One/Zero relationship #111

Open
AhmedAzzabi opened this issue Apr 2, 2020 · 1 comment
Open

Generattion for One to One/Zero relationship #111

AhmedAzzabi opened this issue Apr 2, 2020 · 1 comment

Comments

@AhmedAzzabi
Copy link

I have table that exactly one or none relation with another table, usually with entity framrwork we can use WithOne in mapping and mark it optional, i'm using different FK than the primary key. i'm not able to have a custom mapping as it is always regenrated also the entoty is generated with one entiy in one side but a collection in the other side.

Is their a way to solve these issues ?

@pwelter34
Copy link
Member

If you had some examples, I could work to improve the generated mapping. Another options is to override the generated mapping outside the generated region. anything outside that region will be kept on re-generation.

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

No branches or pull requests

2 participants