# QueryEnumerableWithEntity(T1, Entity)

> Construct a new object.

## Definition

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

## QueryEnumerableWithEntity(T, Entity)

```csharp
public QueryEnumerableWithEntity(T1 item1, Entity entity)
```

### Parameters

**** (T): The value for `T1`.**** (\[Entity]\(/engine/7000.0/script-reference/unity/entities/entity)): The entity

### Remarks

Objects of this type are typically created and destroyed automatically by the source generators.

Additional Resources: [QueryEnumerableWithEntity\<T1>.Deconstruct](/engine/7000.0/script-reference/unity/entities/queryenumerablewithentity1/deconstruct.md)
