Skip to content

Make value converting nulls internal for 6.0 #26230

Description

@ajcvickers

In 6.0 we implemented Allow HasConversion/ValueConverters to convert nulls. However, this has proved to be very problematic in practice with many pitfalls. For example:

These are not trivial issues and for the query issues they are not easy to detect. This makes the feature somewhat a pit-of-failure.

Therefore, we are proposing to mark these APIs as internal for 6.0. This still allows people to use them, but behind an analyzer and documentation warning. (This is similar to marking them as experimental--see EntityFrameworkExperimentalAttribute) We can then make them fully public in a future release after gathering more feedback and possibly making improvements.

Activity

  1. ajcvickers commented on Oct 1, 2021

    @ajcvickers
    ContributorAuthor

    @Pilchie @JeremyLikness FYI. We can discuss as needed.

  2. added a commit that references this issue on Oct 1, 2021
    02feb86
  3. added this to the 6.0.0 milestone on Oct 1, 2021
  4. self-assigned this
    on Oct 1, 2021
  5. changed the title [-]Make value converting nullable types internal for 6.0[/-] [+]Make value converting nulls internal for 6.0[/+] on Oct 4, 2021
  6. removed their assignment
    on Sep 1, 2024
  7. 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

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions