Udostępnij za pośrednictwem


QueryContext.StartTracking Method

Definition

Overloads

StartTracking(Object, EntityTrackingInfo)

Start tracking an entity.

StartTracking(IEntityType, Object, ISnapshot)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

StartTracking(IEntityType, Object, ValueBuffer)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

StartTracking(Object, EntityTrackingInfo)

Source:
QueryContext.cs
Source:
QueryContext.cs

Start tracking an entity.

public virtual void StartTracking (object entity, Microsoft.EntityFrameworkCore.Query.Internal.EntityTrackingInfo entityTrackingInfo);
abstract member StartTracking : obj * Microsoft.EntityFrameworkCore.Query.Internal.EntityTrackingInfo -> unit
override this.StartTracking : obj * Microsoft.EntityFrameworkCore.Query.Internal.EntityTrackingInfo -> unit
Public Overridable Sub StartTracking (entity As Object, entityTrackingInfo As EntityTrackingInfo)

Parameters

entity
Object

The entity.

entityTrackingInfo
Microsoft.EntityFrameworkCore.Query.Internal.EntityTrackingInfo

Information describing how to track the entity.

Applies to

StartTracking(IEntityType, Object, ISnapshot)

Source:
QueryContext.cs

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public virtual Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry StartTracking (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, object entity, in Microsoft.EntityFrameworkCore.ChangeTracking.Internal.ISnapshot snapshot);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member StartTracking : Microsoft.EntityFrameworkCore.Metadata.IEntityType * obj * ISnapshot -> Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry
override this.StartTracking : Microsoft.EntityFrameworkCore.Metadata.IEntityType * obj * ISnapshot -> Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry
Public Overridable Function StartTracking (entityType As IEntityType, entity As Object, snapshot As ISnapshot) As InternalEntityEntry

Parameters

entityType
IEntityType
entity
Object
snapshot
Microsoft.EntityFrameworkCore.ChangeTracking.Internal.ISnapshot

Returns

Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry
Attributes

Applies to

StartTracking(IEntityType, Object, ValueBuffer)

Source:
QueryContext.cs
Source:
QueryContext.cs
Source:
QueryContext.cs
Source:
QueryContext.cs
Source:
QueryContext.cs
Source:
QueryContext.cs

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public virtual Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry StartTracking (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, object entity, Microsoft.EntityFrameworkCore.Storage.ValueBuffer valueBuffer);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member StartTracking : Microsoft.EntityFrameworkCore.Metadata.IEntityType * obj * Microsoft.EntityFrameworkCore.Storage.ValueBuffer -> Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry
override this.StartTracking : Microsoft.EntityFrameworkCore.Metadata.IEntityType * obj * Microsoft.EntityFrameworkCore.Storage.ValueBuffer -> Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry
Public Overridable Function StartTracking (entityType As IEntityType, entity As Object, valueBuffer As ValueBuffer) As InternalEntityEntry

Parameters

entityType
IEntityType
entity
Object
valueBuffer
ValueBuffer

Returns

Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry
Attributes

Applies to