]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Database SnakeCaseNaming fixes
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Tue, 29 Oct 2024 00:34:40 +0000 (01:34 +0100)
committerPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Tue, 12 Nov 2024 00:51:54 +0000 (01:51 +0100)
commit36aceb178c855b381cb9b5868e4348fde1bedbd0
treea244cdd5490c230767b090e44414c7aad0b1e2ac
parentb9c2b0c41b16fe46dbd5cb056e1d5a1b0f8d251f
Database SnakeCaseNaming fixes

Fixes formatting of owned entity type property names. These are normally named "FooBar_Baz" by EF Core, but the snake case thing was turning them into "foo_bar__baz". The double underscore is now fixed.

We don't *yet* have any EF Core owned entity in use, but I am planning to add one. I don't know if downstreams are using any so this should still be marked as a breaking change.

Also fixed it creating and dropping a Compiled Regex instance for every name, the regex is now cached (and pregenerated).
Content.Server.Database/SnakeCaseNaming.cs