Class QueryInfo
Assembly: LemonEdge.DataAccess.Core.dll
Syntax
public class QueryInfo : IQueryInfo
Constructors
QueryInfo(IDbConnection, IDbTransaction, string)
Declaration
public QueryInfo(IDbConnection connection, IDbTransaction transaction, string commandText)
Parameters
QueryInfo(IDbConnection, IDbTransaction, string, IEnumerable<IDbDataParameter>)
Declaration
public QueryInfo(IDbConnection connection, IDbTransaction transaction, string commandText, IEnumerable<IDbDataParameter> parameters)
Parameters
QueryInfo(IDbConnection, IDbTransaction, string, IEnumerable<IDbDataParameter>, CommandType)
Declaration
public QueryInfo(IDbConnection connection, IDbTransaction transaction, string commandText, IEnumerable<IDbDataParameter> parameters, CommandType commandType)
Parameters
QueryInfo(IDbConnection, IDbTransaction?, string, IEnumerable<IDbDataParameter>, CommandType, int)
Declaration
public QueryInfo(IDbConnection connection, IDbTransaction? transaction, string commandText, IEnumerable<IDbDataParameter> parameters, CommandType commandType, int commandTimeout)
Parameters
QueryInfo(IDbConnection, IDbTransaction, string, int)
Declaration
public QueryInfo(IDbConnection connection, IDbTransaction transaction, string commandText, int commandTimeout)
Parameters
QueryInfo(IDbConnection, string)
Declaration
public QueryInfo(IDbConnection connection, string commandText)
Parameters
QueryInfo(IDbConnection, string, IEnumerable<IDbDataParameter>)
Declaration
public QueryInfo(IDbConnection connection, string commandText, IEnumerable<IDbDataParameter> parameters)
Parameters
QueryInfo(IDbConnection, string, IEnumerable<IDbDataParameter>, CommandType)
Declaration
public QueryInfo(IDbConnection connection, string commandText, IEnumerable<IDbDataParameter> parameters, CommandType commandType)
Parameters
QueryInfo(IDbConnection, string, int)
Declaration
public QueryInfo(IDbConnection connection, string commandText, int commandTimeout)
Parameters
Properties
CommandText
The command text which will be used to execute the query
Declaration
public string CommandText { get; }
Property Value
CommandTimeout
The query command timeout
Declaration
public int CommandTimeout { get; }
Property Value
CommandType
Declaration
public CommandType CommandType { get; }
Property Value
Connection
Declaration
public IDbConnection Connection { get; }
Property Value
Parameters
Declaration
public IEnumerable<IDbDataParameter> Parameters { get; }
Property Value
Transaction
Declaration
public IDbTransaction? Transaction { get; }
Property Value
Methods
UpdateCommandText(string)
Will update the current query command text with the provided commandText
Declaration
public void UpdateCommandText(string commandText)
Parameters
Type |
Name |
Description |
string |
commandText |
|
UpdateCommandType(CommandType)
Will update the current query command type with the provided commandType
Declaration
public void UpdateCommandType(CommandType commandType)
Parameters
UpdateParameters(IEnumerable<IDbDataParameter>?)
Will update the current query parameters with the provided parameters
.
If null is provided, the parameters will be replaced with an empty array
Declaration
public void UpdateParameters(IEnumerable<IDbDataParameter>? parameters)
Parameters
UpdateTimeout(int)
Will update the current query command timeout with the provided commandTimeout
Declaration
public void UpdateTimeout(int commandTimeout)
Parameters
Type |
Name |
Description |
int |
commandTimeout |
|
Implements
Extension Methods