PluralizationService.IsSingular Method (String)

.NET Framework (current version)

Determines whether the specified word is singular.

Namespace:   System.Data.Entity.Design.PluralizationServices
Assembly:  System.Data.Entity.Design (in System.Data.Entity.Design.dll)

public abstract bool IsSingular(
	string word


Type: System.String

The value to be analyzed.

Return Value

Type: System.Boolean

true if the word is singular; otherwise, false.

The PluralizationService class applies English rules for constructing plural and singular forms of words. To extend the service to other languages, use the T:System.Data.Entity.Design.EntityModelSchemaGenerator.PluralizationService on the EntityModelSchemaGenerator class.

Both the M:System.Data.Entity.Design.PluralizationServices.PluralizationService.IsSingular and M:System.Data.Entity.Design.PluralizationServices.PluralizationService.IsPlural methods can return true for the same word. For example, both methods will return true for the word "fish".

.NET Framework
Available since 4.0
Return to top