Ejemplo n.º 1
0
        internal void ResetServices()
        {
            hasCachedObjects = false;
            bool asReadOnly = !context.ObjectTrackingEnabled;

            this.identifier = IdentityManager.CreateIdentityManager(asReadOnly);
            this.tracker    = ChangeTracker.CreateChangeTracker(this, asReadOnly);
            this.factoryMap = new Dictionary <MetaDataMember, IDeferredSourceFactory>();
        }
Ejemplo n.º 2
0
        internal CommonDataServices(DataContext context, MetaModel model)
        {
            this.context   = context;
            this.metaModel = model;
            bool asReadOnly = !context.ObjectTrackingEnabled;

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