コード例 #1
0
 private void ExecuteQueries()
 {
     try
     {
         _dataApplication.ExecuteQueries();
         DialogResult = DialogResult.OK;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
コード例 #2
0
        public bool CreateDatabase(Configuration configuration)
        {
            //create
            dloDataApplication dloData = new dloDataApplication();

            dloData.Configuration                 = configuration;
            dloData.DbInfo.ConnectionString       = ConnectionString;
            dloData.DbInfo.MasterConnectionString = MasterConnectionString;
            dloData.GenerateDatabase(false, configuration);

            //execute queries
            try
            {
                return(dloData.ExecuteQueries());
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }