Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Create a convention interface for NaturalId (INaturalIdConvention) #607

Open
alexmurari opened this issue Jun 6, 2023 Discussed in #518 · 1 comment
Open

Comments

@alexmurari
Copy link

Discussed in #518

Originally posted by alexmurari January 13, 2022
Hi,

I'm looking for an interface like INaturalIdConvention, so I can apply the same casing style to the names of the columns that make up the natural id of my table.

NaturalId().Property(t => t.SomeProperty, /* Make column name snake case */); // <-- I want to move these to a convention.

Is there some way to do it using conventions? Or just manually for each natural id map?

@hazzik
Copy link
Member

hazzik commented Jun 7, 2023

I've fixed a bug where conventions were not applied to members of <natural-id>. It should be available on NuGet shortly.

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

No branches or pull requests

2 participants