Skip to content

DataTranslationStore class

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

Reads and writes the translations of the records of rows with a SharedLocalizationAttribute in DataTranslationTable, on the connection of their database.

public static class DataTranslationStore

Public Members

name description
static ApplyTranslations<TRow>(…) Replaces the localizable fields of rows that were loaded without the list handler, e.g. with connection.List in a custom service, with their translations in the first of the languages that has one, with one query for all the rows. A field without a translation keeps its value.
static ApplyTranslationsAsync<TRow>(…) Replaces the localizable fields of rows that were loaded without the list handler, e.g. with connection.List in a custom service, with their translations in the first of the languages that has one, with one query for all the rows. A field without a translation keeps its value.
static DeleteAll(…) Removes all the translations of a record, e.g. when it is deleted.
static DeleteAllAsync(…) Removes all the translations of a record, e.g. when it is deleted.
static Load(…) Loads the translations of a record.
static LoadAsync(…) Loads the translations of a record.
static Set(…) Sets the translation of a field of a record, or removes it when the value is null or white space.
static SetAsync(…) Sets the translation of a field of a record, or removes it when the value is null or white space.

See Also