Esempio n. 1
0
 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());
 }
Esempio n. 2
0
 public void TracingTest()
 {
     Tracking.EntitiesFromSameDbContext();
     Tracking.ObjectsFromSameDbContext();
     Tracking.EntitiesFromDbContexts();
     Tracking.EntityChanges();
     Tracking.Attach();
     Tracking.AssociationChanges();
     Tracking.AsNoTracking();
     Tracking.DetectChanges();
 }
Esempio n. 3
0
 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);
     }
 }