Esempio n. 1
0
 public static void ImportResultColumns(IResultColumns srcResultColumns, TableDefinitionRow destTab)
 {
     nextPkNumber = 1;
     foreach (IResultColumn srcCol in srcResultColumns)
     {
         ImportResultColumn(srcCol, destTab);
     }
 }
Esempio n. 2
0
        override public IResultColumns ResultColumnsFromSQL(string sql)
        {
            IResultColumns columns = null;

            using (FbConnection cn = new FbConnection(dbRoot.ConnectionString))
            {
                cn.Open();
                columns = ResultColumnsFromSQL(sql, cn);
            }
            return(columns);
        }
 private void ExpandResultColumns(IResultColumns resultColumns, TreeNode node)
 {
     if (HasBlankNode(node))
     {
         foreach (IResultColumn resultColumn in resultColumns)
         {
             TreeNode n = new TreeNode(resultColumn.Name);
             n.Tag = new NodeData(NodeType.RESULTCOLUMN, resultColumn);
             n.SelectedImageIndex = n.ImageIndex = 20;
             node.Nodes.Add(n);
         }
     }
 }
		private void ExpandResultColumns(IResultColumns resultColumns, TreeNode node)
		{
			if(HasBlankNode(node))
			{
				foreach(IResultColumn resultColumn in resultColumns)
				{
					TreeNode n = new TreeNode(resultColumn.Name);
					n.Tag = new NodeData(NodeType.RESULTCOLUMN, resultColumn);
					n.SelectedImageIndex = n.ImageIndex = 20;
					node.Nodes.Add(n);
				}
			}
		}
Esempio n. 5
0
 public static void ImportResultColumns(IResultColumns srcResultColumns, TableDefinitionRow destTab)
 {
     nextPkNumber = 1;
     foreach (IResultColumn srcCol in srcResultColumns)
         ImportResultColumn(srcCol, destTab);
 }