# DataQualityContext

The <mark style="color:purple;">**`DataQualityContext`**</mark> inherits from the Transform Context, to see the full list of methods, check out the page dedicated to those methods as well.

{% content-ref url="/pages/bFMjsdHD37bFAE6wCzxX" %}
[TransformDataContext](/transform-sdk/sdk-reference/transformdatacontext.md)
{% endcontent-ref %}

### Process

Process the data with a result, requirements function, and a callback for the data.

**Parameters:**

* `DataQualityValidationResult result`: Result from the interface.
* `Func<bool> RequirementsFunction`: Requirements function.
* `Action<DataQualityValidationResult, DataRow, long, ConcurrentBag<DataQualityValidationRow>> callback`: Data callback.
* `int ChecksPerformedPerRow`: How many checks were performed at each row?

#### Example:

```csharp
data.Process(result, RequirementsFunction, callback, ChecksPerformedPerRow);
```

### ProcessSet

Process the data with a result, requirements function, and a callback for the data.

**Parameters:**

* `DataQualityValidationResult result`: Result from the interface.
* `Func<bool> RequirementsFunction`: Requirements function.
* `Action<ConcurrentBag<DataQualityValidationRow>> callback`: Data callback.
* `int ChecksPerformedPerRow`: How many checks were performed at each row?

#### Example:

```csharp
data.ProcessSet(result, RequirementsFunction, callback, ChecksPerformedPerRow);
```

### CheckCount\_AssociatedSets

Calculate how many checks were performed on a list of associated sets.

**Parameters:**

* `string name`: Name of the set.
* `int checksPerRow`: How many checks per row (default is 1).
* `bool TransformOnly`: If true, only transformed tables are returned (default is true).

**Returns:**

* `int`: Number of checks performed.

#### Example:

```csharp
int checkCount = data.CheckCount_AssociatedSets("setName", checksPerRow, TransformOnly);
```


---

# 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://docs.perigee.software/transform-sdk/sdk-reference/dataqualitycontext.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.
