Skip to content

Generattion for One to One/Zero relationship #111

Description

@AhmedAzzabi

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 ?

Activity

  1. pwelter34 commented on Apr 19, 2020

    @pwelter34
    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.

  2. github-actions commented on Sep 6, 2026

    @github-actions
    Contributor

    ⏰ Stale Issue

    This issue has had no activity for 1 year.
    It will be closed in 45 days unless there is new activity.
    To keep it open, comment or remove the stale label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions