DataScriptAttribute class

namespace: Serenity.ComponentModel   assemblySerenity.Net.Core

Indicates that this method / type should generate a remote data script. Data contained by remote data scripts can be accessed client side using Q.getRemoteData("Key") function.

[AttributeUsage(AttributeTargets.Class)]
public class DataScriptAttribute : Attribute

Public Members

name description
DataScriptAttribute() Initializes a new instance of the DataScriptAttribute class.
DataScriptAttribute(…) Initializes a new instance of the DataScriptAttribute class.
CacheDuration { get; set; } Cache duration in seconds
CacheGroupKey { get; set; } Gets or sets the cache group key. Group keys are used to invalidate a group of items.
Key { get; } Gets the key.
Permission { get; set; } Permission key required to access this data script. Use special value "?" for all logged-in users. Use special value "*" for anyone including not logged-in users.
static AutoKeyFor(…) Gets the automatically generated key for given type.

See Also