/// <summary> /// Returns new data command for this type of the database. /// </summary> /// <param name="query">A SQL query.</param> /// <param name="connection">A connection to database.</param> /// <param name="commandType">A type of the command.</param> /// <returns>Created command.</returns> public virtual DbCommand CreateCommand(string query, DbConnection connection, CommandType commandType = CommandType.Text) { var command = AssemblyHelper.CreateCommand(TypeCommand, query, connection); command.CommandType = commandType; return(command); }