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); } }