Skip to content

Add separate schema field for mappings#2123

Closed
austindrenski wants to merge 2 commits intonpgsql:devfrom
austindrenski:schema-enums
Closed

Add separate schema field for mappings#2123
austindrenski wants to merge 2 commits intonpgsql:devfrom
austindrenski:schema-enums

Conversation

@austindrenski
Copy link
Contributor

@austindrenski austindrenski commented Aug 21, 2018

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");

Related

@austindrenski austindrenski self-assigned this Aug 21, 2018
@austindrenski austindrenski force-pushed the schema-enums branch 7 times, most recently from 791013c to b650b7a Compare August 21, 2018 04:52
@austindrenski
Copy link
Contributor Author

It looks like I've broken some tests with "derived" and "inferred" prefixes. This is probably from some of rote updates to the TryGetValue calls for default types (e.g. where the schema shouldn't matter).

@austindrenski austindrenski force-pushed the schema-enums branch 9 times, most recently from 1d807cf to 1da76a3 Compare August 27, 2018 13:38
@roji
Copy link
Member

roji commented Oct 15, 2019

@austindrenski are you interested in picking this up again?

@roji
Copy link
Member

roji commented Jul 18, 2020

Hey @austindrenski, nice to have your back :) Would you like to rebase this and resolve conflicts, or do you want a review before that?

@roji
Copy link
Member

roji commented Sep 8, 2020

Closing this for age and staleness, plus we haven't seen any user requests for it.

@roji roji closed this Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Require separate name and schema in MapEnum

2 participants