# Introduction

![version](https://img.shields.io/badge/Version-1.3.0-brightgreen.svg?style=for-the-badge)\
![](https://img.shields.io/badge/Language-CSharp-5b0dc3.svg?style=for-the-badge)

### [*Read the complete documentation on GitBook*](https://painlessado.obrassard.ca)

## PainlessADO is a wrapper for C#'s ActiveX Data Objects Library (ADO.NET) which simplifies the use of basic SQL functions.

PainlessADO includes the **SQL** class, which allows you to quickly connect to a Microsoft SQL database and execute queries with or without parameters in your C# code :

```csharp
public class SQL
```

Version 1.3 also includes **support for MySQL** databases which provides the same methods as the SQL class, only they have been adapted to MySQL. Using this class is therefore exactly the same as the **SQL** class which is detailed in this document.

```csharp
public class MySQL
```

## Table of contents

* [Getting Started](https://painlessado.obrassard.ca/getting-started)
* [Methods](https://painlessado.obrassard.ca/methods)
  * [Connect](https://painlessado.obrassard.ca/methods/connect)
  * [Close](https://painlessado.obrassard.ca/methods/close)
  * [GetDataReader](https://painlessado.obrassard.ca/methods/getdatareader)
  * [RetrieveAllData](https://painlessado.obrassard.ca/methods/retrievealldata)
  * [ExecuteScalar](https://painlessado.obrassard.ca/methods/executescalar)
  * [ExecuteNonQuery](https://painlessado.obrassard.ca/methods/executenonquery)
* [Properties](https://painlessado.obrassard.ca/properties)
  * [Database](https://painlessado.obrassard.ca/properties/database)
  * [State](https://painlessado.obrassard.ca/properties/state)   &#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://painlessado.obrassard.ca/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
