src/Inflatable/BaseClasses/MappingBaseClass.cs
/// <summary>
/// Sets the default query based on query type
/// </summary>
/// <param name="queryType">Type of the query.</param>
/// <param name="queryString">The query string.</param>
/// <param name="databaseCommandType">Type of the database command.</param>
/// <param name="parameters">The parameters.</param>
/// <returns>This</returns>
/// <exception cref="ArgumentNullException">queryString</exception>
Sets the default query based on query type
Sets the default query based on query type
public IMapping SetQuery(QueryType queryType, string queryString, CommandType databaseCommandType, params IParameter[] parameters)
        {
            if (string.IsNullOrEmpty(queryString))
                throw new ArgumentNullException(nameof(queryString));
            Queries.Add(queryType, new Query(ObjectType, databaseCommandType, queryString, queryType, parameters));
            return this;
        }
public IMapping SetQuery ( QueryType queryType , string queryString , CommandType databaseCommandType , params IParameter [ ] parameters ) { if ( string . IsNullOrEmpty ( queryString ) ) throw new ArgumentNullException ( nameof ( queryString ) ) ; Queries . Add ( queryType , new Query ( ObjectType , databaseCommandType , queryString , queryType , parameters ) ) ; return this ; }
Sets the default query based on query type
Sets the default query based on query type
None
None
queryType
QueryType
Type of the query.
Type of the query .
queryString
string
The query string.
The query string .
databaseCommandType
CommandType
Type of the database command.
Type of the database command .
parameters
None