Ejemplo n.º 1
0
        private void CreateMode(string tableName)
        {
            BaseModeCreate creator = GetCreator();
            string         rs      = "";
            string         np      = tbNamespace.Text;

            if (np.Length == 0)
            {
                np = "hjn";
            }
            if (string.IsNullOrEmpty(tableName))
            {
                creator.CreateAll(np, comboBoxDb.SelectedValue.ToString(), "", SaveFolder);
            }
        }
Ejemplo n.º 2
0
        private BaseModeCreate GetCreator()
        {
            BaseModeCreate creator = null;
            string         v       = comboBox1.SelectedValue.ToString();

            if (v == "Oledb")
            {
                creator = new AccessModeCreate(textBox1.Text);
            }
            else if (v == "MsSql")
            {
                creator = new SqlServerModeCreate(textBox1.Text);
            }
            else if (v == "MySql")
            {
                creator = new MySqlModeCreate(textBox1.Text);
            }
            return(creator);
        }