Skip to content

EngstromJimmy/EntityFrameworkCorePluralize

Repository files navigation

Nuget

EntityFrameworkCorePluralize

Adds Singlarization and Pluralization to Entity Framework Core

I recently started working with .NET Core and I didn't like that Microsoft removed the automatic pluralization/singularization of classes and collection in Entity Framework Core. They did however give us the opportunity to hook in our own. This is talked about in this StackOverflow post

I choose to modify the one Microsoft provided in previous versions of Entity Framework found here.

Usage:

  1. Add the nuget package https://www.nuget.org/packages/EntityFrameworkCore.Pluralize/
  2. Add a class named PluralizeDesignTimeServices.cs
  3. Run dotnet ef scaffold...... and everything will be named correctly =)

If some translations are missing, please do a PR or contact me and I will add them.

About

Adds Singlarization and Pluralization to Entity Framework Core

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages