MendelMonteiro / PluralizeService.Core

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PluralizeService.Core

Is .Net Core wrapper for class PluralizationService from System.Data.Entity.Design.PluralizationServices

Build status: Build Status

Getting Started

  1. Download and build code, include a reference in your code to the project
  2. From anywhere within your code cal the PluralizationProvider as shown below
    string word = "buses";

    string singleWorld = PluralizationProvider.Singularize(word);
    Console.WriteLine(singleWorld);
    // outputs: bus
    string word = "Company";

    string pluralWord = PluralizationProvider.Pluralize(word);
    Console.WriteLine(pluralWord);
    // outputs: Companies

Authors

  • Microsoft - Initial work - Microsoft
  • Konstantin Anisimoff - adapted for .Net Core - kanisimoff
  • Will Blackburn - Extended to provide a Singleton Provider Class and XUnit Tests - Harkole

About

License:MIT License


Languages

Language:C# 100.0%