Table of Contents

Class ChangeTrackerExtensions

Namespace
Microsoft.EntityFrameworkCore
Assembly
Microsoft.EntityFrameworkCore.dll

Extension methods for ChangeTracker.

public static class ChangeTrackerExtensions
Inheritance
ChangeTrackerExtensions
Inherited Members

Remarks

See EF Core change tracking for more information and examples.

Methods

ToDebugString(ChangeTracker, ChangeTrackerDebugStringOptions, int)

Creates a human-readable representation of the given metadata.

Warning: Do not rely on the format of the returned string. It is designed for debugging only and may change arbitrarily between releases.

public static string ToDebugString(this ChangeTracker changeTracker, ChangeTrackerDebugStringOptions options = ChangeTrackerDebugStringOptions.LongDefault, int indent = 0)

Parameters

changeTracker ChangeTracker

The metadata item.

options ChangeTrackerDebugStringOptions

Options for generating the string.

indent int

The number of indent spaces to use before each new line.

Returns

string

A human-readable representation.

Remarks

See EF Core change tracking for more information and examples.