Skip to content

SharedLocalizationInfo class

namespace: Serenity.Data   assembly: Serenity.Net.Services

What is known about the shared localization of a row type with a SharedLocalizationAttribute: its entity type, the kind of its ID and its localizable fields. For gives it, once per row type.

public sealed class SharedLocalizationInfo

Public Members

name description
static For(…) Gets the shared localization of a row type, or null when it doesn't have a SharedLocalizationAttribute.
Attribute { get; } The attribute of the row type.
EntityType { get; } The entity type the translations of the row are kept by, its row identifier, e.g. "Northwind.Region".
Fields { get; } The localizable fields of the row.
IdField { get; } The ID field of the row.
IdKind { get; } The kind of the ID of the row, which decides the column its ID is kept in.
RowType { get; } The row type.
FindField(…) Finds the localizable field that is kept by a name.
GetFieldName(…) Gets the name a field is kept by in the table, its property name, or null when it is not localizable.
ToIdValue(…) Converts an ID of the row to the value of its column in the table: a Int64, a Guid or a String.

See Also