public List<ITreeItem> GetProcedures(Catalog catalog) { if( catalog.Procedures.Count == 0) { catalog.Procedures.AddRange(_db.GetProcedures(catalog.Name).ConvertAll(t => new Procedure(t))); } return catalog.Procedures.Cast<ITreeItem>().ToList(); }
public Table(string name, Catalog parent) : base(name, parent) { }
public View(string name, Catalog parent) : base(name, parent) { }
public List<ITreeItem> GetViews(Catalog catalog) { if( catalog.Views.Count == 0) { catalog.Views.AddRange(_db.GetViews(catalog.Name).ConvertAll(t => new View(t, catalog))); } return catalog.Views.Cast<ITreeItem>().ToList(); }