Show / Hide Table of Contents

Interface IQuery<TResultType>

Provides an interface for query objects.

Namespace: Paradigm.ORM.Data.Querying
Assembly: Paradigm.ORM.Data.dll
Syntax
public interface IQuery<TResultType> : IDisposable where TResultType : class
Type Parameters
Name Description
TResultType

The type containing or referencing the mapping information, that will be returned after executing the query.

Methods

| Improve this Doc View Source

Execute(String, Object[])

Executes the specified query and returns a list of .

Declaration
List<TResultType> Execute(string whereClause = null, params object[] parameters)
Parameters
Type Name Description
System.String whereClause

A where filter clause. Do not add the "WHERE" keyword to it. If you need to pass parameters, pass using @1, @2, @3.

System.Object[] parameters

A list of parameter values.

Returns
Type Description
List<TResultType>

A list of .

| Improve this Doc View Source

ExecuteAsync(String, Object[])

Executes the specified query and returns a list of .

Declaration
Task<List<TResultType>> ExecuteAsync(string whereClause = null, params object[] parameters)
Parameters
Type Name Description
System.String whereClause

A where filter clause. Do not add the "WHERE" keyword to it. If you need to pass parameters, pass using @1, @2, @3.

System.Object[] parameters

A list of parameter values.

Returns
Type Description
Task<List<TResultType>>

A list of .

Extension Methods

ObjectExtensions.ThrowIfFails<TException>(Object, Action, String)
ObjectExtensions.ThrowIfFails<TException, TResult>(Object, Func<TResult>, String)
ObjectExtensions.ThrowIfFailsAsync<TException>(Object, Func<Task>, String)
ObjectExtensions.ThrowIfFailsAsync<TException, TResult>(Object, Func<Task<TResult>>, String)
  • Improve this Doc
  • View Source
Powered by MiracleDevs ©2017. Code licensed under the MIT License.
Documentation generated by DocFX.