Skip to main content

Definition

Assembly: Microsoft.Restier.EntityFrameworkCore.dll Namespace: Microsoft.Restier.EntityFrameworkCore Inheritance: Microsoft.Restier.Core.Submit.DefaultChangeSetInitializer

Syntax

Microsoft.Restier.EntityFrameworkCore.EFChangeSetInitializer

Summary

To prepare changed entries for the given ChangeSet.

Constructors

.ctor

Syntax

public EFChangeSetInitializer()

Methods

ConvertToEfValue Virtual

Convert a Edm type value to Resource Framework supported value type.

Syntax

public virtual object ConvertToEfValue(System.Type type, object value)

Parameters

NameTypeDescription
typeSystem.TypeThe type of the property defined in CLR class.
valueobjectThe value from OData deserializer and in type of Edm.

Returns

Type: object The converted value object.

InitializeAsync Override

Asynchronously prepare the ChangeSet.

Syntax

public override System.Threading.Tasks.Task InitializeAsync(Microsoft.Restier.Core.Submit.SubmitContext context, System.Threading.CancellationToken cancellationToken)

Parameters

NameTypeDescription
contextMicrosoft.Restier.Core.Submit.SubmitContextThe submit context class used for preparation.
cancellationTokenSystem.Threading.CancellationTokenThe cancellation token.

Returns

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