Skip to content

One-to-one relationships and nullable reference types #788

Description

@mtanneryd

Hi!

I have a table, CompanyCredit, with a primary key that is also a foreign key to the primary key of another table, Company. So, I have a one-to-one mapping between CompanyCredit and Company. There are only entries in CompanyCredit for some of the companies so the nav prop CompanyCredit in Company needs to be nullable. But, currently I cannot get this to work in a project where nullable ref types are enabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions