> ## 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.

# EFChangeSetInitializer

> To prepare changed entries for the given [ChangeSet](/restier/api-reference/Microsoft/Restier/Core/Submit/ChangeSet).

## Definition

**Assembly:** Microsoft.Restier.EntityFramework.dll

**Namespace:** Microsoft.Restier.EntityFramework

**Inheritance:** Microsoft.Restier.Core.Submit.DefaultChangeSetInitializer

## Syntax

```csharp theme={"dark"}
Microsoft.Restier.EntityFramework.EFChangeSetInitializer
```

## Summary

To prepare changed entries for the given [ChangeSet](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/Submit/ChangeSet.md).

## Constructors

### &#x20;.ctor

#### Syntax

```csharp theme={"dark"}
public EFChangeSetInitializer()
```

## Methods

### &#x20;ConvertToEfValue Virtual

Convert a Edm type value to Resource Framework supported value type

#### Syntax

```csharp theme={"dark"}
public virtual object ConvertToEfValue(System.Type type, object value)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `type` | `System.Type` | The type of the property defined in CLR class |
| `value` | `object` | The value from OData deserializer and in type of Edm |

#### Returns

Type: `object`
The converted value object

### &#x20;InitializeAsync Override

Asynchronously prepare the [ChangeSet](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/Submit/ChangeSet.md).

#### Syntax

```csharp theme={"dark"}
public override 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 class used for preparation. |
| `cancellationToken` | `System.Threading.CancellationToken` | The cancellation token. |

#### Returns

Type: `System.Threading.Tasks.Task`
The task object that represents this asynchronous operation.


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