Пример #1
0
 internal BindingObserver(DataServiceContext context, Func <EntityChangedParams, bool> entityChanged, Func <EntityCollectionChangedParams, bool> collectionChanged)
 {
     this.Context = context;
     this.Context.ChangesSaved += new EventHandler <SaveChangesEventArgs>(this.OnChangesSaved);
     this.EntityChanged         = entityChanged;
     this.CollectionChanged     = collectionChanged;
     this.bindingGraph          = new BindingGraph(this);
 }
Пример #2
0
        internal BindingObserver(DataServiceContext context, Func <EntityChangedParams, bool> entityChanged, Func <EntityCollectionChangedParams, bool> collectionChanged)
        {
            Debug.Assert(context != null, "Must have been validated during DataServiceCollection construction.");
            this.Context = context;
            this.Context.ChangesSaved += this.OnChangesSaved;

            this.EntityChanged     = entityChanged;
            this.CollectionChanged = collectionChanged;

            this.bindingGraph = new BindingGraph(this);
        }