Ejemplo n.º 1
0
        void HandleClass(TableNode classTable)
        {
            // Find all involved physical tables
            //_lNameToTableMap.TryGetValue(classTable.

            /*TableInfo tableInfo = _tables.FirstOrDefault(info => info.LogicalName == classTable.Name);
            if(tableInfo == null)
                throw new TranslatorException("Unknown table: '"+classTable.Name+"'");*/

            //TableNode physicalTable = new TableNode {Name = tableInfo. };

            /*using(AstManager ast = new AstManager()) {
                ast.OnTableRemove = pos => {
                    var physicalTables = GetPhysicalTables(classTable.ReferedColumns);
                    ast.InsertTables(physicalTables);
                };
                ast.
                ast.ReplaceTable(classTable);
            }*/
        }
Ejemplo n.º 2
0
 public void AddTable(TableNode table, TableNode newTable, ref string alias)
 {
     SelectColumnNode select = (SelectColumnNode)table.Parent;
     table.Parent.Remove(table);
     //Add(newTable);
 }