RowLookupScript<TRow> class
namespace: Serenity.Web assembly: Serenity.Net.Web
Generic lookup script type for rows. For a row with a SharedLocalizationAttribute or a LocalizationRowAttribute whose LocalizeListByDefault is true, the localizable fields it selects are translated to the language of the user, like the list, so a lookup is generated and cached for each language.
public class RowLookupScript<TRow> : LookupScript, ICacheSuffix
where TRow : class, IRow, new()
| parameter |
description |
| TRow |
The row type. |
Public Members
| name |
description |
| RowLookupScript(…) |
Initializes a new instance of the RowLookupScript class. |
| virtual CacheSuffix { get; } |
Gets the suffix of the cache key of the lookup: the language of the user when its items are translated, for a row with a SharedLocalizationAttribute or a LocalizationRowAttribute whose LocalizeListByDefault is true, else an empty string. |
Protected Members
See Also