Esempio n. 1
0
        public virtual void RemoveView(ITable view)
        {
            _views.Remove(view);
            view.Database = null;

            RaisePropertyChanged("Views");
            ViewsChanged.RaiseEventEx(this,
                                      new CollectionChangeEvent <ITable>(CollectionChangeAction.Deletion, view));
        }
Esempio n. 2
0
        public virtual ITable AddView(ITable view)
        {
            _views.Add(view);
            view.Database = this;

            RaisePropertyChanged("Views");
            ViewsChanged.RaiseEventEx(this,
                                      new CollectionChangeEvent <ITable>(CollectionChangeAction.Addition, view));

            return(view);
        }