Esempio n. 1
0
        private static void ToAccess(DataSet ds, string targetFolder, string alias, ref string err)
        {
            var filePath = GetFilePath(targetFolder, alias, ExportType.Access);
            var cs       = ConfigurationManager.ConnectionStrings["AccessFile"].ToString().Replace("|FilePath|", filePath);

            DatasetToJet.CopyDatasetSchemaToJetDb(cs, ds, filePath, ref err);
        }
Esempio n. 2
0
        private bool CheckViewsAre_Exists()
        {
            bool ret = false;

            if (!bl_Obj.CheckViewExists())
            {
                Settings setting = new Settings();
                string   path    = setting.ConnectionString_Local.ToString().Substring(setting.ConnectionString_Local.LastIndexOf("=") + 1).ToString();
                try
                {
                    bool v = new DatasetToJet().CREATEVIEW(path);
                    if (!v)
                    {
                        KryptonMessageBox.Show("Error In Createing Views ." + Environment.NewLine + "Hence Cannot UPdate Window" + Environment.NewLine);
                        ret = false;
                    }
                    else
                    {
                        ret = v;
                    }
                }
                catch (Exception ex)
                {
                    KryptonMessageBox.Show(ex.Message.ToString(), "Creating Views Problem");
                    return(ret);
                }
            }
            else
            {
                ret = true;
            }
            return(ret);
        }