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

# IChangeSetInitializer

> Represents a service that can initialize a change set.

## Definition

**Assembly:** Microsoft.Restier.Core.dll

**Namespace:** Microsoft.Restier.Core.Submit

## Syntax

```csharp theme={"dark"}
Microsoft.Restier.Core.Submit.IChangeSetInitializer
```

## Summary

Represents a service that can initialize a change set.

## Methods

### &#x20;InitializeAsync Abstract

Asynchronously initialize a change set for submission.

#### Syntax

```csharp theme={"dark"}
System.Threading.Tasks.Task InitializeAsync(Microsoft.Restier.Core.Submit.SubmitContext context, System.Threading.CancellationToken cancellationToken)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `context` | `Microsoft.Restier.Core.Submit.SubmitContext` | The submit context. |
| `cancellationToken` | `System.Threading.CancellationToken` | A cancellation token. |

#### Returns

Type: `System.Threading.Tasks.Task`
A task that represents the asynchronous operation.

#### Remarks

Preparing a change set involves creating new entity objects for
new data, loading entities that are pending update or delete from
to get current server values, and using a data provider mechanism
to locally apply the supplied changes to the loaded entities.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.