示例#1
0
        public static IForeignKey RunFk(ITableStructure table, string activeColumn, ISqlDialect dialect)
        {
            var win = new SelectReferenceForm(table, activeColumn, null, dialect);

            win.ShowDialogEx();
            return(win.m_resultFk);
        }
示例#2
0
        public static ReferenceViewDefinition Run(ITableStructure table, string activeColumn, List <string> availcols, ISqlDialect dialect)
        {
            var win = new SelectReferenceForm(table, activeColumn, availcols, dialect);

            win.ShowDialogEx();
            return(win.m_result);
        }
示例#3
0
        private void mnuAddReferencedTable_Click(object sender, EventArgs e)
        {
            var fk = SelectReferenceForm.RunFk(m_table, null, null);

            if (fk != null)
            {
                m_frame.AddTable(fk.PrimaryKeyTable == m_table.FullName ? fk.Table.FullName : fk.PrimaryKeyTable, this, fk);
            }
        }