Skip to content

IQueryWithParams interface

namespace: Serenity.Data   assembly: Serenity.Net.Services

Interface for objects setting parameters by PARAM method (like SqlInsert, SqlUpdate, SqlDelete...).

public interface IQueryWithParams

Members

name description
Dialect { get; } Gets the dialect.
HasAutoParams { get; } Gets a value indicating whether any automatically named parameters were generated for this query or one of the queries sharing its parameter storage. Manually named parameters don't affect this. Note that this may still return false before the query is rendered (e.g. via ToString()), as auto parameters only materialize at render time.
IsFrozen { get; } Gets a value indicating whether this query or one of its parents has been frozen.
IsParamsFrozen { get; } Gets a value indicating whether parameters have been frozen.
Params { get; } Gets the parameters.
Parent { get; } Gets access to parent query if any.
AddParam(…) Adds the parameter.
AutoParam() Creates an automatically named parameter.
Freeze() Freezes the query and its parameters, and prepares its SQL text for reuse.
FreezeParams() Freezes the query's parameters so they can no longer be added or changed.
SetParam(…) Sets the parameter.

See Also