示例#1
0
 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();
 }
示例#2
0
 public Table(string name, Catalog parent)
     : base(name, parent)
 {
 }
示例#3
0
 public View(string name, Catalog parent)
     : base(name, parent)
 {
 }
示例#4
0
 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();
 }