public static bool UsesOldFictionSchema(DatabaseMetadata databaseMetadata) { Version metadataVersion = databaseMetadata.GetParsedVersion(); if (metadataVersion == null) { throw new Exception("Database metadata has an invalid version number."); } return(metadataVersion < new Version("1.4")); }