Table of Contents

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

DbConnection

FilterFlags

public ContextFilterVO FilterFlags { get; set; }

Property Value

ContextFilterVO

RuleFlags

public ContextRuleVO RuleFlags { get; set; }

Property Value

ContextRuleVO

Methods

Clone()

public ContextVO Clone()

Returns

ContextVO

FactoryAsOwner()

public static ContextVO FactoryAsOwner()

Returns

ContextVO

FactoryForTriggers()

public static ContextVO FactoryForTriggers()

Returns

ContextVO

GetAsOwner()

Get a clone with turn off filters and all business rules

public ContextVO GetAsOwner()

Returns

ContextVO

GetForTriggers()

Get a clone with turns off SQL filters and permission checking in business rules

public ContextVO GetForTriggers()

Returns

ContextVO

SetAsOwner(ContextVO)

Turn off filters and all business rules

public ContextVO SetAsOwner(ContextVO contextItem = null)

Parameters

Nome Tipo Descrição
contextItem ContextVO

Returns

ContextVO

SetAsUser(ContextVO)

Turn on filters and all business rules

public ContextVO SetAsUser(ContextVO contextItem = null)

Parameters

Nome Tipo Descrição
contextItem ContextVO

Returns

ContextVO

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

ContextVO

SwitchOff()

public ContextVO SwitchOff()

Returns

ContextVO

SwitchOffFilter()

public ContextVO SwitchOffFilter()

Returns

ContextVO

SwitchOffRules()

public ContextVO SwitchOffRules()

Returns

ContextVO

SwitchOn()

public ContextVO SwitchOn()

Returns

ContextVO

SwitchOnFilter()

public ContextVO SwitchOnFilter()

Returns

ContextVO

SwitchOnRules()

public ContextVO SwitchOnRules()

Returns

ContextVO