Share via


IUpdateAdapterFactory.CreateStandalone(IModel) Method

Definition

Creates a standalone tracker that works with its own Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IStateManager and hence will not impact tracking on the state manager currently in use.

public Microsoft.EntityFrameworkCore.Update.IUpdateAdapter CreateStandalone (Microsoft.EntityFrameworkCore.Metadata.IModel model = default);
public Microsoft.EntityFrameworkCore.Update.IUpdateAdapter CreateStandalone (Microsoft.EntityFrameworkCore.Metadata.IModel? model = default);
abstract member CreateStandalone : Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Update.IUpdateAdapter
Public Function CreateStandalone (Optional model As IModel = Nothing) As IUpdateAdapter

Parameters

model
IModel

The model for which a tracker is needed, or null to use the current model.

Returns

The new tracker.

Remarks

The Entries from this update adapter should be used explicitly once they have been setup. They will not be visible to other parts of the stack, including SaveChanges().

Applies to