Skip to content

Add parameter to ignore migration history table in UseSnakeCaseNamingConvention#313

Draft
Elgreen wants to merge 1 commit intoefcore:mainfrom
Elgreen:add-ignore-migration-history-table
Draft

Add parameter to ignore migration history table in UseSnakeCaseNamingConvention#313
Elgreen wants to merge 1 commit intoefcore:mainfrom
Elgreen:add-ignore-migration-history-table

Conversation

@Elgreen
Copy link

@Elgreen Elgreen commented Feb 24, 2025

Add a parameter ignoreMigrationHistoryTable to UseSnakeCaseNamingConvention() to ignore columns in the __EFMigrationsHistory table.

  • Modify UseSnakeCaseNamingConvention method in EFCore.NamingConventions/NamingConventionsExtensions.cs to accept a new parameter ignoreMigrationHistoryTable.
  • Update NamingConventionsOptionsExtension class in EFCore.NamingConventions/Internal/NamingConventionsOptionsExtension.cs to include the ignoreMigrationHistoryTable parameter.
  • Add a new field _ignoreMigrationHistoryTable in NameRewritingConvention class in EFCore.NamingConventions/Internal/NameRewritingConvention.cs and update the constructor and ProcessEntityTypeAdded method to handle the new parameter.
  • Add a new test method IgnoreMigrationHistoryTable in EFCore.NamingConventions.Test/IntegrationTest.cs to test the ignoreMigrationHistoryTable parameter of the UseSnakeCaseNamingConvention method.

…Convention

Add a parameter `ignoreMigrationHistoryTable` to `UseSnakeCaseNamingConvention()` to ignore columns in the `__EFMigrationsHistory` table.

* Modify `UseSnakeCaseNamingConvention` method in `EFCore.NamingConventions/NamingConventionsExtensions.cs` to accept a new parameter `ignoreMigrationHistoryTable`.
* Update `NamingConventionsOptionsExtension` class in `EFCore.NamingConventions/Internal/NamingConventionsOptionsExtension.cs` to include the `ignoreMigrationHistoryTable` parameter.
* Add a new field `_ignoreMigrationHistoryTable` in `NameRewritingConvention` class in `EFCore.NamingConventions/Internal/NameRewritingConvention.cs` and update the constructor and `ProcessEntityTypeAdded` method to handle the new parameter.
* Add a new test method `IgnoreMigrationHistoryTable` in `EFCore.NamingConventions.Test/IntegrationTest.cs` to test the `ignoreMigrationHistoryTable` parameter of the `UseSnakeCaseNamingConvention` method.
@Elgreen Elgreen marked this pull request as draft February 24, 2025 19:17
@sdb-dev
Copy link

sdb-dev commented Oct 2, 2025

Any update on this PR? This is breaking the entire library now

@roji
Copy link
Member

roji commented Oct 2, 2025

How is it "breaking the entier library"?

@EraYaN
Copy link

EraYaN commented Nov 17, 2025

This might be a duplicate of #66

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.

4 participants