> ## Documentation Index
> Fetch the complete documentation index at: https://easyaf.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# EntitySetConfiguration

> Extension methods for EntitySetConfiguration from Microsoft.AspNetCore.OData

## Definition

**Assembly:** Microsoft.AspNetCore.OData.dll

**Namespace:** Microsoft.AspNet.OData.Builder

## Syntax

```csharp theme={"dark"}
Microsoft.AspNet.OData.Builder.EntitySetConfiguration<T> where T : CloudNimble.EasyAF.Core.DbObservableObject
```

## Summary

This type is defined in Microsoft.AspNetCore.OData.

## Remarks

See [Microsoft documentation](https://learn.microsoft.com/dotnet/api/microsoft.aspnet.odata.builder.entitysetconfiguration\{t}) for more information about the rest of the API.

## Methods

### <Icon icon="puzzle-piece" iconType="duotone" color="#E0EC32" size={24} className="mr-2" /> IgnoreAuditFields <Badge color="green">Extension</Badge>

<Note>Extension method from `Microsoft.Restier.Core.Model.IModelBuilderExtensions`</Note>

Configures the entity set to ignore audit trail fields in the OData model.
Dynamically removes DateCreated, DateUpdated, CreatedById, and UpdatedById properties based on implemented interfaces.

#### Syntax

```csharp theme={"dark"}
public static Microsoft.AspNet.OData.Builder.EntitySetConfiguration<T> IgnoreAuditFields<T>(Microsoft.AspNet.OData.Builder.EntitySetConfiguration<T> configuration) where T : CloudNimble.EasyAF.Core.EasyObservableObject
```

#### Parameters

| Name            | Type                                                       | Description                             |
| --------------- | ---------------------------------------------------------- | --------------------------------------- |
| `configuration` | `Microsoft.AspNet.OData.Builder.EntitySetConfiguration<T>` | The entity set configuration to modify. |

#### Returns

Type: `Microsoft.AspNet.OData.Builder.EntitySetConfiguration<T>`
The entity set configuration for method chaining.

#### Type Parameters

* `T` - The entity type that inherits from EasyObservableObject.

### <Icon icon="puzzle-piece" iconType="duotone" color="#E0EC32" size={24} className="mr-2" /> IgnoreTrackingFields <Badge color="green">Extension</Badge>

<Note>Extension method from `Microsoft.Restier.Core.Model.IModelBuilderExtensions`</Note>

Configures the entity set to ignore DbObservableObject tracking fields in the OData model.
Excludes IsChanged, IsGraphChanged, ShouldTrackChanges, and OriginalValues from the model.

#### Syntax

```csharp theme={"dark"}
public static Microsoft.AspNet.OData.Builder.EntitySetConfiguration<T> IgnoreTrackingFields<T>(Microsoft.AspNet.OData.Builder.EntitySetConfiguration<T> configuration) where T : CloudNimble.EasyAF.Core.DbObservableObject
```

#### Parameters

| Name            | Type                                                       | Description                             |
| --------------- | ---------------------------------------------------------- | --------------------------------------- |
| `configuration` | `Microsoft.AspNet.OData.Builder.EntitySetConfiguration<T>` | The entity set configuration to modify. |

#### Returns

Type: `Microsoft.AspNet.OData.Builder.EntitySetConfiguration<T>`
The entity set configuration for method chaining.

#### Type Parameters

* `T` - The entity type that inherits from DbObservableObject.
