DotNetMigrations.Migrations.MigrationDirectory.GetPath C# (CSharp) Method

GetPath() public method

Returns the migration script path from the config file (if available) or the default path.
public GetPath ( ILogger log ) : string
log ILogger
return string
        public string GetPath(ILogger log)
        {
            string path = _configurationManager.AppSettings[AppSettingKeys.MigrateFolder];

            if (string.IsNullOrEmpty(path))
            {
                if (log != null)
                {
                    log.WriteWarning(
                        "The " + AppSettingKeys.MigrateFolder + " setting was not present in the configuration file so the default " +
                        DefaultMigrationScriptPath + " folder will be used instead.");
                }
                path = DefaultMigrationScriptPath;
            }

            VerifyAndCreatePath(path);

            return path;
        }