Skip to content

DataTranslationStore.SetAsync method

Sets the translation of a field of a record, or removes it when the value is null or white space.

public static Task SetAsync(IDbConnection connection, SharedLocalizationInfo info, object id, 
    string fieldName, string languageId, string? value, DataTranslationAudit audit, 
    CancellationToken cancellationToken = default)
parameter description
connection The connection to the database of the row.
info The shared localization of the row.
id The ID of the record.
fieldName The name of the field, see GetFieldName.
languageId The language.
value The translation, or null to remove it.
audit Who changes it and when.
cancellationToken The cancellation token.

See Also