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 SourceExecute(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 |
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 |