The EF Core 2.0 had an extension method called Relational in the IMutableEntityType
interface.
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?