# 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="transformdatacontext" %}
[transformdatacontext](https://docs.perigee.software/transform-sdk/sdk-reference/transformdatacontext)
{% 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);
```
