Skip to main content
Version: 2023

SqlContext

Namespace: PPJ.Runtime.Sql

Assembly: PPJ.Web.49 (4.9.0.0)

Defines a sql context block. This class is used in a using(new SqlContext()) code block to delimit a local context. The constructor can take the reference to the local variables encapsulating class and to the current object. Both references are used by the interpreter to evaluate bind variables.

public class SqlContext : IDisposable

Constructors​

Instance memberSqlContext(locals)​

Creates a new SqlContext and pushes it on the stack.

NameTypeDescription
localsObject

Instance memberSqlContext(locals, container)​

Creates a new SqlContext and pushes it on the stack.

NameTypeDescription
localsObject
containerObject

Properties​

Instance memberContainer​

Object: Returns the container instance.

Static memberCurrent​

SqlContext: Returns the current SqlContext instance or SqlContext.Empty if there is no current SqlContext on the stack.

Instance memberDisposed​

Boolean: Returns true if the SqlContext has been disposed of (out of scope).

Instance memberLocals​

Object: Returns the local variables instance.

Methods​

Instance memberDispose()​

Disposes the SqlContext