Table of Contents

Method GetCaption

Namespace
Innova.Data.Entity.Localization
Assembly
Innova.Data.dll

GetCaption(string, Conjugation)

Gets the caption for the specified name and conjugation.

public static string GetCaption(string name, Conjugation conjugation)

Parameters

name string

The name of the caption.

conjugation Conjugation

The conjugation of the caption.

Returns

string

The caption string.

GetCaption(string, bool)

Gets the caption for the specified name and plural notation.

public static string GetCaption(string name, bool usePluralNotation)

Parameters

name string

The name of the caption.

usePluralNotation bool

Indicates whether to use plural notation.

Returns

string

The caption string.

GetCaption(string, string)

Gets the caption for the specified entity name and property name.

public static string GetCaption(string entityName, string propertyName)

Parameters

entityName string

The name of the entity.

propertyName string

The name of the property.

Returns

string

The caption string.

GetCaption(Type, string)

Gets the caption for the specified entity type and property name.

public static string GetCaption(Type entityType, string propertyName)

Parameters

entityType Type

The type of the entity.

propertyName string

The name of the property.

Returns

string

The caption string.

GetCaption<T>(bool)

Gets the caption for the specified generic type and plural notation.

public static string GetCaption<T>(bool usePluralNotation)

Parameters

usePluralNotation bool

Indicates whether to use plural notation.

Returns

string

The caption string.

Type Parameters

T

The generic type.

GetCaption<T>(string)

Gets the caption for the specified generic type and property name.

public static string GetCaption<T>(string propertyName)

Parameters

propertyName string

The name of the property.

Returns

string

The caption string.

Type Parameters

T

The generic type.

GetCaption<T>(Expression<Func<T, object>>)

Gets the caption for the specified expression.

public static string GetCaption<T>(Expression<Func<T, object>> expression)

Parameters

expression Expression<Func<T, object>>

The expression representing the property.

Returns

string

The caption string.

Type Parameters

T

The generic type.