Beispiel #1
0
 /// <summary>
 /// Tries to obtain the version number from database Versions table.
 /// If, database doesn't contain such table or contains no versions, Version.Min is returned.
 /// </summary>
 private static DatabaseValidationResult IdentifyDatabaseVersion(string connectionString)
 {
     try
     {
         Versioning.Version version = TryIdentifyDatabaseVersion(connectionString);
         return(new DatabaseValidationResult(version));
     }
     catch (Exception exception)
     {
         return(new DatabaseValidationResult(exception.Message));
     }
 }
 internal DatabaseValidationResult(TestConnectionResult connectionResult, Versioning.Version version)
     : base(connectionResult)
 {
     CurrentVersion = version;
 }
 internal DatabaseValidationResult(Versioning.Version currentVersion)
 {
     this.CurrentVersion = currentVersion;
 }