public void TrackingTest() { Tracking.EntitiesFromSameDbContext(new AdventureWorks()); Tracking.ObjectsFromSameDbContext(new AdventureWorks()); Tracking.EntitiesFromMultipleDbContexts(); Tracking.EntityChanges(new AdventureWorks()); Tracking.Attach(new AdventureWorks()); Tracking.RelationshipChanges(new AdventureWorks()); Tracking.AsNoTracking(new AdventureWorks()); Tracking.DetectChanges(new AdventureWorks()); }
public void TracingTest() { Tracking.EntitiesFromSameDbContext(); Tracking.ObjectsFromSameDbContext(); Tracking.EntitiesFromDbContexts(); Tracking.EntityChanges(); Tracking.Attach(); Tracking.AssociationChanges(); Tracking.AsNoTracking(); Tracking.DetectChanges(); }
public void TracingTest() { Tracking.EntitiesFromSameDataContext(); Tracking.ObjectsFromSameDataContext(); Tracking.EntitiesFromDataContexts(); Tracking.EntityChanges(); Tracking.Attach(); Tracking.AssociationChanges(); try { Tracking.DisableObjectTracking(); Assert.Fail(); } catch (InvalidOperationException exception) { Trace.WriteLine(exception); } }