PluralizationService 类

定义

提供用于构造单词的单复数形式的方法。Provides methods for constructing plural and singular forms of words.

public ref class PluralizationService abstract
public abstract class PluralizationService
type PluralizationService = class
Public MustInherit Class PluralizationService
继承
PluralizationService

注解

PluralizationService类应用英语规则来构造单词的复数形式。The PluralizationService class applies English rules for constructing plural and singular forms of words. 若要将服务扩展到其他语言,请使用 PluralizationService 类上的 EntityModelSchemaGeneratorTo extend the service to other languages, use the PluralizationService on the EntityModelSchemaGenerator class.

构造函数

PluralizationService()

初始化 PluralizationService 类的新实例。Initializes a new instance of the PluralizationService class.

属性

Culture

获取或设置 PluralizationService 区域性。Gets or sets the PluralizationService culture.

方法

CreateService(CultureInfo)

创建一个 PluralizationService,它应用与指定的 CultureInfo 相对应的语言规则。Creates a PluralizationService that applies language rules that correspond to the specified CultureInfo.

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
IsPlural(String)

确定指定的单词是否为复数形式。Determines whether the specified word is plural.

IsSingular(String)

确定指定的单词是否为单数形式。Determines whether the specified word is singular.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
Pluralize(String)

返回指定单词的复数形式。Returns the plural form of the specified word.

Singularize(String)

返回指定单词的单数形式。Returns the singular form of the specified word.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于