Class ActionAttribute
Data action attribute
Inherited Members
Namespace: XData.Mapping
Assembly: XData.docfx.dll
Syntax
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
public sealed class ActionAttribute : Attribute
Remarks
Used to assign one or more DataActionType to IDataLogic<T> action handler
Hint: Use ActionOrder to apply execution order of multiple handlers marked ActionAttribute for same DataActionType
Hint: Action handlers will executed on server side when using XData Application server
Constructors
| Improve this Doc View SourceActionAttribute(DataActionType, Int32)
Data action attribute
Declaration
public ActionAttribute(DataActionType type, int order = 0)
Parameters
Type | Name | Description |
---|---|---|
DataActionType | type | Type of action (see DataActionType) |
Int32 | order | Action execution order |
Properties
| Improve this Doc View SourceActionOrder
Action execution order
Declaration
public int ActionOrder { get; }
Property Value
Type | Description |
---|---|
Int32 |
ActionType
Type of action (see DataActionType)
Declaration
public DataActionType ActionType { get; }
Property Value
Type | Description |
---|---|
DataActionType |
See Also
| Improve this Doc View SourceTypeId
When implemented in a derived class, gets a unique identifier for this Attribute.
Declaration
public override object TypeId { get; }
Property Value
Type | Description |
---|---|
Object | An Object that is a unique identifier for the attribute. |