zzz projects Entity Framework Core EF Core
Home EF Core 5 Articles Knowledge Base Online Examples
  • Home
  • EF Core 5
  • Articles
  • Knowledge Base
  • Online Examples

Articles

4 results for:

AsNoTracking

AsNoTracking...Introduction...Tracking behavior controls whether to keep track or not of information about an entity instance when it is changed. If an entity is tracked, any changes detected in the entity will be persisted to the database during SaveChanges()....In the following example, the change to the customer address will be detected and persisted to the database during ...SaveChanges().......using (var context = new MyContext()) { var customer = context.Customers .Where(c => c...
query change-tracker disconnected

AsNoTracking

Entity Framework Core - As No Tracking...(This page is currently in draft mode. The final content should be available within a few days.)...What is the Entity Framework Core AsNoTracking method?...The ...AsNoTracking()... method make the LINQ query to return entities but without added them in the ...ChangeTracker.... So those entities are not tracked and are known as ...Disconnected Entities.......// Simple example with Where clause ...Performance Comparison...Not adding entities in the Change T...
query change-tracker disconnected

ChangeTracker

ChangeTracker...Introduction...ChangeTracker... class provides access to change tracking information and operations for entity instances the context is tracking. In EF Core, the DbContext includes the ChangeTracker class, and it starts tracking of all the entities as soon as it is retrieved using DbContext....The Change Tracker tracks an entity using any of the following states:...Added...Unchanged...Modified...Deleted...Detached...Added...The entity is being tracked by the context but does not ...
save change-tracker

Entity Disconnected

Entity Disconnected...Introduction...A DbContext instance automatically tracks entities returned from the database, and any changes made to these entities are detected when SaveChanges is called, and the database is also updated as needed....Sometimes entities are queried using one context instance and then saved using a different instance....In this case, the second context instance needs to know whether the entities are new (should be inserted) or existing (should be updated)....Identify New o...
save change-tracker disconnected

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79