Class ContextVO
- Namespace
- PHCBusinessLayer
- Assembly
- PHCBusinessLayer.dll
public class ContextVO
- Inheritance
-
ContextVO
Properties
Connection
Try to avoid using this property at all costs, it should only be used in situations where we are going to run asynchronous processes and these processes have no possibility of having defined a property for the connection to the database, and only have minimal knowledge of the context initial
public DbConnection Connection { get; set; }
Property Value
FilterFlags
public ContextFilterVO FilterFlags { get; set; }
Property Value
RuleFlags
public ContextRuleVO RuleFlags { get; set; }
Property Value
Methods
Clone()
public ContextVO Clone()
Returns
FactoryAsOwner()
public static ContextVO FactoryAsOwner()
Returns
FactoryForTriggers()
public static ContextVO FactoryForTriggers()
Returns
GetAsOwner()
Get a clone with turn off filters and all business rules
public ContextVO GetAsOwner()
Returns
GetForTriggers()
Get a clone with turns off SQL filters and permission checking in business rules
public ContextVO GetForTriggers()
Returns
SetAsOwner(ContextVO)
Turn off filters and all business rules
public ContextVO SetAsOwner(ContextVO contextItem = null)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
contextItem |
ContextVO |
Returns
SetAsUser(ContextVO)
Turn on filters and all business rules
public ContextVO SetAsUser(ContextVO contextItem = null)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
contextItem |
ContextVO |
Returns
SetForTriggers(ContextVO)
Turns off SQL filters and permission checking in business rules
public ContextVO SetForTriggers(ContextVO contextItem = null)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
contextItem |
ContextVO |
Returns
SwitchOff()
public ContextVO SwitchOff()
Returns
SwitchOffFilter()
public ContextVO SwitchOffFilter()
Returns
SwitchOffRules()
public ContextVO SwitchOffRules()
Returns
SwitchOn()
public ContextVO SwitchOn()
Returns
SwitchOnFilter()
public ContextVO SwitchOnFilter()
Returns
SwitchOnRules()
public ContextVO SwitchOnRules()