Skip to content

Commit

Permalink
Support the new MySql package name
Browse files Browse the repository at this point in the history
  • Loading branch information
artiomchi committed Nov 28, 2024
1 parent 1373858 commit 0f0b9c7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Also supports injecting sql command generators to add support for other provider
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageTags>Entity Framework Core entity-framework-core EF EntityFramework EntityFrameworkCore EFCore Upsert</PackageTags>
<PackageReadmeFile>README.md</PackageReadmeFile>
<VersionPrefix>8.1.1</VersionPrefix>
<VersionPrefix>8.1.2</VersionPrefix>
<PackageReleaseNotes>
v8.1.0
+ Adding initial support for Oracle DB! (Thanks to @dadyarri)
Expand Down
2 changes: 1 addition & 1 deletion src/FlexLabs.EntityFrameworkCore.Upsert/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
<value>{0} must be an Initialiser of the TEntity type</value>
</data>
<data name="UsingAutogeneratedIdentityKeysAsTheUpsertMatchExpressionIsNotSupportedPickANonGeneratedUniqueKey" xml:space="preserve">
<value>Using autogenerated / identity keys as the upsert match excession is not supported. Pick a non generated unique key.</value>
<value>Using autogenerated / identity keys as the upsert match expression is not supported. Please pick a non generated unique key.</value>
</data>
<data name="UsingConditionalUpdatesIsNotSupportedInMySQLDueToDatabaseSyntaxLimitations" xml:space="preserve">
<value>Using conditional updates is not supported in MySQL due to database syntax limitations.</value>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ namespace FlexLabs.EntityFrameworkCore.Upsert.Runners
public class MySqlUpsertCommandRunner : RelationalUpsertCommandRunner
{
/// <inheritdoc/>
public override bool Supports(string providerName) => providerName == "MySql.Data.EntityFrameworkCore" || providerName == "Pomelo.EntityFrameworkCore.MySql";
public override bool Supports(string providerName) =>
providerName == "MySql.Data.EntityFrameworkCore" ||
providerName == "MySql.EntityFrameworkCore" ||
providerName == "Pomelo.EntityFrameworkCore.MySql";
/// <inheritdoc/>
protected override string EscapeName(string name) => "`" + name + "`";
/// <inheritdoc/>
Expand Down

0 comments on commit 0f0b9c7

Please sign in to comment.