C# Class DotNetMigrations.SeedDirectory

Inheritance: ISeedDirectory
Datei anzeigen Open project: jpoehls/dotnetmigrations

Public Methods

Method Description
GetPath ( ILogger log ) : string

Returns the seed script path from the config file (if available) or the default path.

GetScripts ( string setName ) : IEnumerable

Returns a list of all the seed script file paths sorted by name.

SeedDirectory ( ) : System.Collections.Generic
SeedDirectory ( IConfigurationManager configurationManager ) : System.Collections.Generic

Private Methods

Method Description
VerifyAndCreatePath ( string path ) : void

Verify the path exists and creates it if it's missing.

Method Details

GetPath() public method

Returns the seed script path from the config file (if available) or the default path.
public GetPath ( ILogger log ) : string
log ILogger
return string

GetScripts() public method

Returns a list of all the seed script file paths sorted by name.
public GetScripts ( string setName ) : IEnumerable
setName string
return IEnumerable

SeedDirectory() public method

public SeedDirectory ( ) : System.Collections.Generic
return System.Collections.Generic

SeedDirectory() public method

public SeedDirectory ( IConfigurationManager configurationManager ) : System.Collections.Generic
configurationManager IConfigurationManager
return System.Collections.Generic