-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix
FOR UPDATE is not allowed with window functions
@ `AuthorRevi…
…sionSaver.SaveAuthorRevisions()` * fix `IEnumerable<>.Conatins(IEnumerable<>, IEqualityComparer<>)` cannot be translated @ `ReplySaver.SaveReplySignatures()` * fix quoting string literal & identifiers for Postgres flavor * replace MySQL specified `IFNULL()` with standard `COALESCE()` - setting timeout variables for MySQL @ `PushAllPostContentsIntoSonicWorker.DoWork()` @ crawler * suppress Roslyn analyzer rule `AV1568` in `ExifGpsTagValuesParser.ParseGpsCoordinateOrNull()` & `ExifDateTimeTagValuesParser.ParseExifDateTimeOrNull()` @ MetadataConsumer.cs @ imagePipeline + virtual methods `OnBuildingNpgsqlDataSource()`, `GetNpgsqlDataSource()` & method `GetNpgsqlDataSourceFactory()` for mapping enum types in Postgres * rename virtual method `OnConfiguringMysql()` to `OnConfiguringNpgsql()` * rename static field `SelectForUpdateCommandInterceptorInstace` to `SelectForUpdateCommandInterceptorSingleton` @ TbmDbContext.cs + class `NpgsqlCamelCaseNameTranslator` for converting enum value names @ shared @ c#
- Loading branch information
Showing
8 changed files
with
59 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Globalization; | ||
using Npgsql; | ||
|
||
namespace tbm.Shared; | ||
|
||
public class NpgsqlCamelCaseNameTranslator : INpgsqlNameTranslator | ||
{ | ||
public string TranslateTypeName(string clrName) => TranslateMemberName(clrName); | ||
|
||
/// <see>https://github.com/efcore/EFCore.NamingConventions/blob/0d19b13a8e62ec20779c3cca03c27f200b5b7458/EFCore.NamingConventions/Internal/CamelCaseNameRewriter.cs#L13</see> | ||
/// <see>https://github.com/npgsql/npgsql/pull/1690</see> | ||
public string TranslateMemberName(string clrName) => | ||
char.ToLower(clrName[0], CultureInfo.InvariantCulture) + clrName[1..]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters