# GetDependency()

> Combines all dependencies in this EntityQuery into a single JobHandle.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
public JobHandle GetDependency()
```

### Returns

| Type                                                                 | Description                                                             |
| -------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [JobHandle](/engine/7000.0/script-reference/unity/jobs/jobhandle.md) | JobHandle that represents the combined dependencies of this EntityQuery |

### Remarks

An entity query uses jobs internally when required to create arrays of entities and chunks.
