示例#1
0
        private void bProcess_Click(object sender, EventArgs e)
        {
            facto = new DFacto(tbConnStr.Text);
            facto.Filter = comboBox1.Text;
            facto.StoredProcedureFilter = comboBox2.Text;
            facto.RefreshDatabaseSchema();
            facto.Save(filepath, Path.GetFileNameWithoutExtension(filepath));

            MessageBox.Show("Ready!");
        }
示例#2
0
        private void bRefresh_Click(object sender, EventArgs e)
        {
            facto = new DFacto(tbConnStr.Text);
            facto.Filter = comboBox1.Text;
            facto.StoredProcedureFilter = comboBox2.Text;
            facto.RefreshDatabaseSchema();

            litems.Clear();
            foreach (EntityData ed in facto.AllEntities)
            {
                litems.Add(ed.ClassName, ed);
            }

            BindLists();
        }