public virtual void RemoveView(ITable view) { _views.Remove(view); view.Database = null; RaisePropertyChanged("Views"); ViewsChanged.RaiseEventEx(this, new CollectionChangeEvent <ITable>(CollectionChangeAction.Deletion, view)); }
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); }