TwoLevelCachedAttribute class

namespace: Serenity.Data   assemblySerenity.Net.Data

This attribute marks a row so that when it is Inserted/Updated/Deleted through repository, its related cache, if any should be cleared. It doesn't turn on/off caching. A sample of related cached item to a row, might be its lookup if any.

[AttributeUsage(AttributeTargets.All)]
public class TwoLevelCachedAttribute : Attribute

Public Members

name description
TwoLevelCachedAttribute() Initializes a new instance of the TwoLevelCachedAttribute class.
TwoLevelCachedAttribute(…) Initializes a new instance of the TwoLevelCachedAttribute class. (2 constructors)
GenerationKeys { get; set; } Gets the generation keys.
LinkedRows { get; set; } Gets the types of the linked rows.

See Also