Table of Contents

Class ModelActionContext

Namespace
TimeCockpit.Data.DataModel.Actions
Assembly
TimeCockpit.Data.dll

Represents the main context a ModelAction operates on. A ModelActionContext must provide at least an instance of DataContext, a list of EntityObject to operation on (may be empty) and an instance of ModelActionParameterDefinition.

public class ModelActionContext
Inheritance
Object
ModelActionContext
Derived
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

Constructors

ModelActionContext()

public ModelActionContext()

Properties

CurrentUserId

Gets or sets the unique identifier of the user that is currently using the context

public Guid CurrentUserId { get; set; }

Property Value

Guid

DataContext

Gets or sets the data context of the model action context

public DataContext DataContext { get; set; }

Property Value

DataContext

IDataContext

Gets or sets the abstract/base IDataContext.

public IDataContext IDataContext { get; set; }

Property Value

IDataContext

ModelEntity

Gets or sets an instance of a model entity to check if a ModelAction can be executed on that model entity.

public ModelEntityBase ModelEntity { get; set; }

Property Value

ModelEntityBase