public override string ToArgs() { List <string> options = new List <string> { Url.Formatted(), Driver.Formatted(), User.Formatted(), Password.Formatted(), ConnectRetries.Formatted(), InitSql.Formatted(), DefaultSchema.Formatted(), Schemas.Formatted(), Color.Formatted(), Table.Formatted(), TableSpace.Formatted(), JarDirs.Formatted(), Callbacks.Formatted(), SkipDefaultCallbacks.Formatted(), BaselineVersion.Formatted(), BaselineDescription.Formatted(), ValidateMigrationNaming.Formatted(), WorkingDirectory.Formatted(), LicenseKey.Formatted() }; return(ToArgs(options)); }
private void ProcessEntities() { metaProvider.GetTables(this.Tables); foreach (MetaInfoTable table in Tables) { md.SetCurrentToRoot(); md.CreateComment("Entity imported from table {0}.{1}", table.PersistentSchema, table.PersistentName); table.Node = md.CreateElement("Entity"); if (!DefaultSchema.Equals(table.Schema, StringComparison.InvariantCultureIgnoreCase)) { md.AddAttribute("schema", table.Schema); } md.AddAttribute("name", table.Name); if (!DefaultPersistentSchema.Equals(table.PersistentSchema, StringComparison.InvariantCultureIgnoreCase)) { md.AddAttribute("persistentSchema", table.PersistentSchema); } md.AddAttribute("persistentName", table.PersistentName); md.Document.DocumentElement.AppendChild(md.CurrentNode); ProcessAttributes(table); ProcessPrimaryKey(table); ProcessUniqueKeys(table); } }
public override string ToArgs() { List <string> options = new List <string> { Url.Formatted(), Driver.Formatted(), User.Formatted(), Password.Formatted(), ConnectRetries.Formatted(), InitSql.Formatted(), Schemas.Formatted(), Table.Formatted(), Locations.Formatted(), JarDirs.Formatted(), SqlMigrationPrefix.Formatted(), UndoSqlMigrationPrefix.Formatted(), RepeatableSqlMigrationPrefix.Formatted(), SqlMigrationSeparator.Formatted(), SqlMigrationSuffixes.Formatted(), Stream.Formatted(), Batch.Formatted(), Mixed.Formatted(), Group.Formatted(), Encoding.Formatted(), PlaceholderReplacement.Formatted(), Placeholders.Formatted(), PlaceholderPrefix.Formatted(), PlaceholderSuffix.Formatted(), Resolvers.Formatted(), SkipDefaultResolvers.Formatted(), Callbacks.Formatted(), SkipDefaultCallbacks.Formatted(), Target.Formatted(), OutOfOrder.Formatted(), ValidateOnMigrate.Formatted(), CleanOnValidationError.Formatted(), IgnoreMissingMigrations.Formatted(), IgnoreIgnoredMigrations.Formatted(), IgnoreFutureMigrations.Formatted(), CleanDisabled.Formatted(), BaselineOnMigrate.Formatted(), BaselineVersion.Formatted(), BaselineDescription.Formatted(), InstalledBy.Formatted(), ErrorOverrides.Formatted(), DryRunOutput.Formatted(), OracleSqlplus.Formatted(), LicenseKey.Formatted(), DefaultSchema.Formatted(), TableSpace.Formatted(), Color.Formatted(), ValidateMigrationNaming.Formatted(), OutputQueryResults.Formatted(), OracleSqlplusWarn.Formatted(), WorkingDirectory.Formatted() }; return(ToArgs(options)); }
public override string ToArgs() { List <string> options = new List <string> { Url.Formatted(), Driver.Formatted(), User.Formatted(), Password.Formatted(), ConnectRetries.Formatted(), InitSql.Formatted(), DefaultSchema.Formatted(), Schemas.Formatted(), Table.Formatted(), Locations.Formatted(), Color.Formatted(), JarDirs.Formatted(), SqlMigrationPrefix.Formatted(), UndoSqlMigrationPrefix.Formatted(), RepeatableSqlMigrationPrefix.Formatted(), SqlMigrationSeparator.Formatted(), ValidateMigrationNaming.Formatted(), Encoding.Formatted(), PlaceholderReplacement.Formatted(), Placeholders.Formatted(), PlaceholderPrefix.Formatted(), PlaceholderSuffix.Formatted(), Resolvers.Formatted(), SkipDefaultResolvers.Formatted(), Callbacks.Formatted(), SkipDefaultCallbacks.Formatted(), Target.Formatted(), OutOfOrder.Formatted(), CleanOnValidationError.Formatted(), IgnoreMissingMigrations.Formatted(), IgnoreIgnoredMigrations.Formatted(), IgnoreFutureMigrations.Formatted(), OracleSqlplus.Formatted(), OracleSqlplusWarn.Formatted(), WorkingDirectory.Formatted(), LicenseKey.Formatted() }; return(ToArgs(options)); }
/// <summary> /// Returns the hashcode for this <see cref="BaseDbSetting"/>. /// </summary> /// <returns>The hashcode value.</returns> public override int GetHashCode() { if (this.hashCode != null) { return(this.hashCode.Value); } // Use the non nullable for perf purposes var hashCode = 0; // AreTableHintsSupported hashCode += AreTableHintsSupported.GetHashCode(); // ClosingQuote if (!string.IsNullOrEmpty(ClosingQuote)) { hashCode += ClosingQuote.GetHashCode(); } // DefaultAverageableType if (AverageableType != null) { hashCode += AverageableType.GetHashCode(); } // DefaultSchema if (!string.IsNullOrEmpty(DefaultSchema)) { hashCode += DefaultSchema.GetHashCode(); } // IsDbParameterDirectionSettingSupported hashCode += IsDirectionSupported.GetHashCode(); // IsDisposeDbCommandAfterExecuteReader hashCode += IsExecuteReaderDisposable.GetHashCode(); // IsMultipleStatementExecutionSupported hashCode += IsMultiStatementExecutable.GetHashCode(); // IsPreparable hashCode += IsPreparable.GetHashCode(); // IsUseUpsertForMergeOperation hashCode += IsUseUpsert.GetHashCode(); // OpeningQuote if (!string.IsNullOrEmpty(OpeningQuote)) { hashCode += OpeningQuote.GetHashCode(); } // ParameterPrefix if (!string.IsNullOrEmpty(ParameterPrefix)) { hashCode += ParameterPrefix.GetHashCode(); } // Set and return the hashcode return((this.hashCode = hashCode).Value); }