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
stringThe name of the caption.
conjugation
ConjugationThe 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
stringThe name of the caption.
usePluralNotation
boolIndicates 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
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
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
boolIndicates 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
stringThe 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.