I used to implement IDesignTimeServices with IPluralizer in order to make scaffold-dbcontext works so that I can switch pluralized table names into signalized entity name. e.g. Clients -> Client
After I upgraded to EF Core 5.0, IPluralizer gone... I can no longer change my entity name. Did I miss something?
using Inflector;
using System;
using System.Collections.Generic;
using System.Text;
namespace IB.Stock.TestConsole.EFConfig
{
class EFPluralizer : IPluralizer
{
public string Pluralize(string identifier)
{
return Inflector.Pluralize(identifier) ?? identifier;
}
public string Singularize(string identifier)
{
return Inflector.Singularize(identifier) ?? identifier;
}
}
}
The above is some of my code. I cannot find any reference for IPluralizer.
EF Core version: 5.0.0-preview.4.20220.10
EntityFrameworkCore.Design version: 5.0.0-preview.4.20220.10
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: netcoreapp3.1
Operating system: Windows 10
IDE: Visual Studio 2019 16.3
It is still there: https://github.com/dotnet/efcore/blob/0d76bbf45a42148924b413ef8f37bf49c1ce10d3/src/EFCore.Design/Design/IPluralizer.cs
Maybe you are hit by this breaking change: https://docs.microsoft.com/da-dk/ef/core/what-is-new/ef-core-3.0/breaking-changes#dip
Most helpful comment
It is still there: https://github.com/dotnet/efcore/blob/0d76bbf45a42148924b413ef8f37bf49c1ce10d3/src/EFCore.Design/Design/IPluralizer.cs
Maybe you are hit by this breaking change: https://docs.microsoft.com/da-dk/ef/core/what-is-new/ef-core-3.0/breaking-changes#dip