Exemplo n.º 1
0
 // Methods
 internal ChangeProcessor(CommonDataServices services, DataContext context)
 {
     this.services                = services;
     this.context                 = context;
     this.tracker                 = services.ChangeTracker;
     this.changeDirector          = services.ChangeDirector;
     this.currentParentEdges      = new EdgeMap();
     this.originalChildEdges      = new EdgeMap();
     this.originalChildReferences = new ReferenceMap();
 }
Exemplo n.º 2
0
        // Methods
        internal CommonDataServices(DataContext context, MetaModel model)
        {
            Context = context;
            Model   = model;
            bool asReadOnly = !context.ObjectTrackingEnabled;

            IdentityManager = IdentityManager.CreateIdentityManager(asReadOnly);
            ChangeTracker   = ChangeTracker.CreateChangeTracker(this, asReadOnly);
            ChangeDirector  = ChangeDirector.CreateChangeDirector(context);
            factoryMap      = new Dictionary <MetaDataMember, IDeferredSourceFactory>();
        }