Skip to content

Migrations: CHECK Required Columns on TPH Derived Types #2595

Description

@bricelam

For required properties on derived types, we could add a CHECK constraint to ensure it's NOT NULL when the discriminator is one that type or one of it's derived types.

Activity

  1. added this to the Backlog milestone on Jul 10, 2015
  2. added
    help wanted
    on Jul 10, 2015
  3. added
    good first issue
    help wanted
    and removed
    help wanted
    good first issue
    on May 31, 2019
  4. added
    good first issue
    and removed
    help wanted
    on Aug 5, 2019
  5. 6 remaining items

  6. modified the milestones: Backlog, 6.0.0 on Oct 28, 2020
  7. bricelam commented on Nov 4, 2020

    @bricelam
    ContributorAuthor

    A Stack Overflow question about this: EF Core saves null value of required property

  8. modified the milestones: 6.0.0, Backlog on May 5, 2021
  9. removed their assignment
    on Jul 8, 2023
  10. removed
    good first issue
    on May 14, 2024
  11. added theissue type on Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions