Skip to content

Require separate name and schema in MapEnum #2121

Closed as not planned
Closed as not planned

Description

@austindrenski

Currently, we have this:

GlobalTypeMapper.MapEnum<SomeEnum>("some_schema.some_enum");

Which contributes to the issues in the EF Core provider involving default schemas and detecting when to escape user defined type names.

npgsql/efcore.pg#605 attempts to address this from the provider-side, but it would be better if the type mapping treated names and schema's separately:

GlobalTypeMapper.MapEnum<SomeEnum>(name: "some_enum", schema: "some_schema");

Activity

  1. added this to the 4.1 milestone on Aug 25, 2018
  2. modified the milestones: 4.1, 5.0 on Aug 27, 2019
  3. modified the milestones: 5.0, Backlog on Sep 17, 2020
  4. NinoFloris commented on Aug 15, 2023

    @NinoFloris
    Member

    Probably not worth the confusion considering we already support fully qualified names in the currently existing methods, behavior which we can't remove without breaking users (needlessly in this case IMO)

  5. added theissue type on Jun 18, 2025
  6. removed this from the Backlog milestone on Nov 5, 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

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions