C# Class Rock.Lava.Blocks.Sql

Sql stores the result of provided SQL query into a variable. {% sql results %} SELECT [FirstName], [LastName] FROM [Person] {% endsql %}
Inheritance: RockLavaBlockBase
显示文件 Open project: NewSpring/Rock

Public Methods

Method Description
Initialize ( string tagName, string markup, List tokens ) : void

Initializes the specified tag name.

OnStartup ( ) : void

Method that will be run at Rock startup

Render ( Context context, TextWriter result ) : void

Renders the specified context.

Private Methods

Method Description
ParseMarkup ( string markup, Context context ) : string>.Dictionary

Parses the markup.

Method Details

Initialize() public method

Initializes the specified tag name.
Could not find the variable to place results in.
public Initialize ( string tagName, string markup, List tokens ) : void
tagName string Name of the tag.
markup string The markup.
tokens List The tokens.
return void

OnStartup() public method

Method that will be run at Rock startup
public OnStartup ( ) : void
return void

Render() public method

Renders the specified context.
public Render ( Context context, TextWriter result ) : void
context DotLiquid.Context The context.
result System.IO.TextWriter The result.
return void