Beispiel #1
0
        public List<ViewInfo> LoadViews(string databaseName)
        {
            this.Connect();

            List<ViewInfo> views = new List<ViewInfo>();
            foreach (MyMeta.View view in _root.Databases[databaseName].Views)
            {
                string tablename = view.Name;
                //if (Array.IndexOf(this.ignoreDatabaseName, dbname) != -1)
                //    continue;
                ViewInfo item = new ViewInfo();
                item.RawName = tablename;
                //item.Loader = this;
                views.Add(item);
            }

            return views;
        }
Beispiel #2
0
        private void LoadViews()
        {
            if (_viewsLoaded)
                return;

            loader.Connect();

            this.views = new List<IViewInfo>();
            foreach (MyMeta.View view in loader.Root.Databases[this.Name].Views)
            {
                string viewname = view.Name;
                //if (Array.IndexOf(this.ignoreDatabaseName, dbname) != -1)
                //    continue;

                IViewInfo item = new ViewInfo(this);
                item.RawName = viewname;
                item.Schema = view.Schema;
                this.views.Add(item);
            }

            _viewsLoaded = true;
        }