2

My .NET 4.0 app used the PluralizationServices located in System.Data.Entity.Design.PluralizationServices. When I went to convert my app to .NET CORE 5.0, the compiler complains:

The type or namespace name 'PluralizationService' could not be found (are you missing a using directive or an assembly reference?)

I've tried using System.Data, and using System.Data.Common.

Where do I find this in .NET 5.0?

B. Lec
  • 312
  • 2
  • 13
Level 42
  • 400
  • 2
  • 7
  • 1
    Docs say this is not supported on net core - https://learn.microsoft.com/en-us/dotnet/api/system.data.entity.design.pluralizationservices.pluralizationservice, switch the drop down on the left to net core - we use https://www.nuget.org/packages/Pluralize.NET but not in an EF context – stuartd Dec 06 '21 at 02:12
  • 1
    https://github.com/dotnet/efcore/issues/2506#issuecomment-121317996 – stuartd Dec 06 '21 at 02:16

1 Answers1

4

System.Data.Entity.Design.PluralizationServices is not available in .NET Core or .NET.

See the docs here (try switching that page to .NET 5/.NET Core; you cannot) and also this comment from the devs.

Possible replacements include PluralizeService.Core, Pluralize.NET, or Humanizer.

Hugh W
  • 716
  • 2
  • 10
  • 33