Skip to content
Adds Singlarization and Pluralization to Entity Framework Core
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
EntityFrameworkCore.Pluralize
.gitignore
EntityFrameworkCore.Pluralize.sln
README.md

README.md

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.

You can’t perform that action at this time.