Show / Hide Table of Contents

Class QueryManager

Class implementing searches for database items.

Inheritance
System.Object
QueryManager
Implements
System.IDisposable
Namespace: MESL.SqlRace.Domain.Query
Assembly: MESL.SqlRace.Domain.dll
Syntax
public class QueryManager : Object, IDisposable

Properties

Filter

Gets or sets the filter criterion to the query manager.

Declaration
public IFilter Filter { get; set; }
Property Value
Type Description
IFilter

SearchOptions

Gets or sets the search options

Declaration
public SearchOptions SearchOptions { get; set; }
Property Value
Type Description
SearchOptions

Methods

AddSortCriterion(SortCriterion)

Add sort criteria to the query manager.

Declaration
public void AddSortCriterion(SortCriterion sortCriterion)
Parameters
Type Name Description
SortCriterion sortCriterion

Criteria by which to sort the query results.

CreateQueryManager(String)

Creates an instance of the query manager.

Declaration
public static QueryManager CreateQueryManager(string connectionString)
Parameters
Type Name Description
System.String connectionString

The connection string.

Returns
Type Description
QueryManager

An instance of the query manager

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public void Dispose()

ExecuteQuery()

Executes the search query.

Declaration
public IEnumerable<SessionSummary> ExecuteQuery()
Returns
Type Description
System.Collections.Generic.IEnumerable<SessionSummary>

List of session summaries of matching sessions.

ExecuteQuery(Int32, Int32)

Executes the search query.

Declaration
public IEnumerable<SessionSummary> ExecuteQuery(int pageNumber, int pageSize)
Parameters
Type Name Description
System.Int32 pageNumber

Page number of results set to return.

System.Int32 pageSize

Size of result set to return.

Returns
Type Description
System.Collections.Generic.IEnumerable<SessionSummary>

List of session summaries of matching sessions.

Finalize()

Finalizes an instance of the QueryManager class.

Declaration
protected override void Finalize()

RemoveSession(SessionKey)

Removes the session from SQlRace

Declaration
public void RemoveSession(SessionKey sessionKey)
Parameters
Type Name Description
MAT.OCS.Core.SessionKey sessionKey

Session Identifier

SessionExists(SessionKey)

Returns whether the session exists or not

Declaration
public bool SessionExists(SessionKey sessionKey)
Parameters
Type Name Description
MAT.OCS.Core.SessionKey sessionKey

Session Identifier

Returns
Type Description
System.Boolean

Exists indicator

Implements

System.IDisposable
Back to top Generated by DocFX