Migr8.Options.Options C# (CSharp) Method

Options() public method

Creates an options object fo the migrator to use.
public Options ( string migrationTableName = DefaultMigrationTableName, Action logAction = null, Action verboseLogAction = null ) : System
migrationTableName string Optionally specifies the name of the table in which executed migrations will be logged. Defaults to .
logAction Action Optionally specifies a log action to use, which can be used to track progress as the migrator is running. Defaults to printing output to the console.
verboseLogAction Action Optionally specifies a log action to use for detailed logging, which can be used to track progress as the migrator is running. Defaults to not doing anything.
return System
        public Options(
            string migrationTableName = DefaultMigrationTableName,
            Action<string> logAction = null,
            Action<string> verboseLogAction = null)
        {
            MigrationTableName = migrationTableName;
            LogAction = logAction;
            VerboseLogAction = verboseLogAction;
        }