nopSolutions / nopCommerce

ASP.NET Core eCommerce software. nopCommerce is a free and open-source shopping cart.
https://www.nopcommerce.com
Other
9.09k stars 5.2k forks source link

Upgrading issue. SettingMigration raises an exception when deleting the "pdfsettings.fontfilename" setting #7199

Closed skoshelev closed 1 month ago

skoshelev commented 1 month ago

nopCommerce version: 4.60, 4.70

When migration tries to delete the " PdfSettings.FontFileName" settings, the next exception is thrown:

LinqToDB.Linq.LinqException: "'setting.Name.Equals("PdfSettings.FontFileName", CurrentCultureIgnoreCase)' cannot be converted to SQL."

This happens because Linq2Db cannot convert the string.Equals expression with the StringComparison.CurrentCultureIgnoreCase parameter into a valid SQL expression