Skip to content

LocalizationRowAttribute class

namespace: Serenity.Data   assemblySerenity.Net.Services

Maps a row to its localization row.

[AttributeUsage(AttributeTargets.All)]
public class LocalizationRowAttribute : Attribute
parameter description
localizationRow Localization row type

Public Members

name description
LocalizationRowAttribute(…) Maps a row to its localization row.
LocalizationRow { get; } Gets the localization row type.
LocalizeListByDefault { get; set; } If set to true returns translated values by default for the list handler (available in Pro.Extensions package) when ListRequest.Localize is not set, e.g. it is null. Note that if this is enabled, Request.Localize parameter must be specified as empty string to get original values.
MappedIdField { get; set; } ID field corresponding to this tables ID field. Can be automatically determined if not specified.

Exceptions

exception condition
ArgumentNullException localizationRow is null.

Remarks

Initializes a new instance of the attribute.

See Also