private bool CheckVersionDatabaseIsValid() { bool isValidate = true; BApplication appBusiness = new BApplication(); VersionStatus versionStatusObj = appBusiness.GetLastDatabaseVersion(); string[] atlasVersionStrArray = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString().Split('.'); int[] atlasVersionIntArray = Array.ConvertAll(atlasVersionStrArray, s => int.Parse(s)); string[] databaseVersionStrArray; if (versionStatusObj != null) { databaseVersionStrArray = versionStatusObj.Version.Split('.'); } else { databaseVersionStrArray = new string[4]; isValidate = false; return(isValidate); } int[] databaseVersionIntArray = Array.ConvertAll(databaseVersionStrArray, s => int.Parse(s)); for (int i = 0; i < atlasVersionIntArray.Count(); i++) { if (atlasVersionIntArray[i] != databaseVersionIntArray[i]) { isValidate = false; } } return(isValidate); }