The EF Core 2.0 had an extension method called Relational in the IMutableEntityTypeinterface.
Pluralizer pluralizer = new Pluralizer();
foreach (IMutableEntityType entityType in modelBuilder.Model.GetEntityTypes())
{
string tableName = entityType.Relational().TableName;
entityType.Relational().TableName = pluralizer.Pluralize(tableName);
}
I was able to pluralize table names using it and with the help of the Pluralizer library.
But in .NET Core 3.0, this method does not exist.
Can anyone help me out and give me a brief explanation?
The syntax has been changed a little bit in EF Core 3 according to this issue, here is the new version: