Show / Hide Table of Contents

Class WaitFor

When used in a Select, this will cause a WAITFOR DELAY <argument> to be executed in the database.
This is only intended for experimentation with statement cancellation etc., NOT for production code.
Support for Oracle may be sketchy.

Inheritance
object
QueryElement
Argument
Aggregation
WaitFor
Implements
ICloneable
Inherited Members
Aggregation._arg
Aggregation.GetMainField()
Aggregation.ArgumentObject
Argument.Equal(Argument)
Argument.UnEqual(Argument)
Argument.LessThan(Argument)
Argument.LessThanOrEqual(Argument)
Argument.GreaterThan(Argument)
Argument.GreaterThanOrEqual(Argument)
Argument.Like(Argument)
Argument.Like(string)
Argument.NotLike(Argument)
Argument.NotBetween(Argument, Argument)
Argument.Between(Argument, Argument)
Argument.In(params Argument[])
Argument.HasAny(params Argument[])
Argument.HasAll(params Argument[])
Argument.MissingAny(params Argument[])
Argument.MissingAll(params Argument[])
Argument.IsNull()
Argument.IsNotNull()
Argument.NotIn(params Argument[])
Argument.HasFlag(Argument)
Argument.HasNoFlag(Argument)
Argument.ToArgumentArray<T>(T[])
Argument.ToArgumentArray<T>(T[], bool)
Argument.GetSubElements()
Argument.Alias
Argument.DataType
Argument.Size
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.Data.Sql
Assembly: SoDataBase.dll
Syntax
public class WaitFor : Aggregation, ICloneable
Remarks
var ws = S.NewSelect();                                 // no tableinfo
ws.ReturnFields.Add(new WaitFor(S.Parameter(delay)));   // explicit creation of WaitFor element, add as returnfield
var result = ws.ExecuteReader().ToList();               // returns 0 rows, after the specified delay

Constructors

WaitFor(Argument)

Create a WAITFOR statement (by using this method in a select)

Declaration
public WaitFor(Argument arg)
Parameters
Type Name Description
Argument arg

How long to wait; mandatory

Remarks
var ws = S.NewSelect();                                 // no tableinfo
ws.ReturnFields.Add(new WaitFor(S.Parameter(delay)));   // explicit creation of WaitFor element, add as returnfield
var result = ws.ExecuteReader().ToList();               // returns 0 rows, after the specified delay
Exceptions
Type Condition
SoIllegalOperationException

NULL or not TimeSpacen argument

Methods

Clone()

Creates a copy of the query elements, but shares parameter values with the original, so it is not a complete copy.

Declaration
public override object Clone()
Returns
Type Description
object

Copy of all the restrictions/joins

Overrides
QueryElement.Clone()
Remarks

This method is used by the SentryQueryUpdater to modify a query with sentry extensions without affecting the original query.

Implements

ICloneable

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top