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.
- C#
- VB.NET
public class SqlContext : IDisposable
Public Class SqlContext
Inherits IDisposable
Constructors
SqlContext(locals)
Creates a new SqlContext and pushes it on the stack.
| Name | Type | Description |
|---|---|---|
| locals | Object |
SqlContext(locals, container)
Creates a new SqlContext and pushes it on the stack.
| Name | Type | Description |
|---|---|---|
| locals | Object | |
| container | Object |
Properties
Container
Object: Returns the container instance.
Current
SqlContext: Returns the current SqlContext instance or SqlContext.Empty if there is no current SqlContext on the stack.
Disposed
Boolean: Returns true if the SqlContext has been disposed of (out of scope).
Locals
Object: Returns the local variables instance.
Methods
Dispose()
Disposes the SqlContext