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
namestringThe name of the caption.
conjugationConjugationThe 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
namestringThe name of the caption.
usePluralNotationboolIndicates 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
usePluralNotationboolIndicates whether to use plural notation.
Returns
- string
The caption string.
Type Parameters
TThe generic type.
GetCaption<T>(string)
Gets the caption for the specified generic type and property name.
public static string GetCaption<T>(string propertyName)
Parameters
propertyNamestringThe name of the property.
Returns
- string
The caption string.
Type Parameters
TThe 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
expressionExpression<Func<T, object>>The expression representing the property.
Returns
- string
The caption string.
Type Parameters
TThe generic type.