예제 #1
0
 public static void ImportResultColumns(IResultColumns srcResultColumns, TableDefinitionRow destTab)
 {
     nextPkNumber = 1;
     foreach (IResultColumn srcCol in srcResultColumns)
     {
         ImportResultColumn(srcCol, destTab);
     }
 }
예제 #2
0
파일: Database.cs 프로젝트: zhh007/MyGen
        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);
         }
     }
 }
예제 #4
0
		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);
				}
			}
		}
예제 #5
0
 public static void ImportResultColumns(IResultColumns srcResultColumns, TableDefinitionRow destTab)
 {
     nextPkNumber = 1;
     foreach (IResultColumn srcCol in srcResultColumns)
         ImportResultColumn(srcCol, destTab);
 }