예제 #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();
 }