コード例 #1
0
        public void CheckLocalDB()
        {
            System.Reflection.Assembly asm   = System.Reflection.Assembly.GetExecutingAssembly();
            string strClientConnectionString = @"Data Source=" + System.IO.Path.GetDirectoryName(asm.Location) + "\\VMukti.sdf";
            string strFilePath = System.IO.Path.GetDirectoryName(asm.Location) + "\\VMukti.sdf";

            clsDataService.CreateInitialLocalDB(strClientConnectionString, File.Exists(strFilePath));
        }
コード例 #2
0
 public void CheckLocalDB()
 {
     try
     {
         System.Reflection.Assembly asm   = System.Reflection.Assembly.GetExecutingAssembly();
         string strClientConnectionString = @"Data Source=" + System.IO.Path.GetDirectoryName(asm.Location) + "\\VMukti.sdf";
         //strServerConnectionString = @"Data Source=192.168.1.186\SQLExpress;Initial Catalog=VMukti;User ID=sa;PassWord=mahavir";
         string strFilePath = System.IO.Path.GetDirectoryName(asm.Location) + "\\VMukti.sdf";
         clsDataService.CreateInitialLocalDB(strClientConnectionString, File.Exists(strFilePath));
     }
     catch (Exception ex)
     {
         VMuktiHelper.ExceptionHandler(ex, "CheckLocalDB()", "ClsChannelManager.cs");
     }
 }