Class DefaultRootPathConvention
The default implementation of a IRootPathConvention
Implements
Inherited Members
Namespace: FluentMigrator.Runner.Conventions
Assembly: FluentMigrator.Runner.Core.dll
Syntax
public class DefaultRootPathConvention : IRootPathConvention
Remarks
It sets the working directory, which is either the path given in the constructor or - when the given path is null - the current directory.
Constructors
| Edit this page View SourceDefaultRootPathConvention(string)
Initializes a new instance of the DefaultRootPathConvention class.
Declaration
public DefaultRootPathConvention(string rootPath)
Parameters
Type | Name | Description |
---|---|---|
string | rootPath | The root path for expressions requiring file system access. |
Remarks
When rootPath
is null, then the current directory is
returned
Methods
| Edit this page View SourceApply(IFileSystemExpression)
Applies a convention to a IFileSystemExpression
Declaration
public IFileSystemExpression Apply(IFileSystemExpression expression)
Parameters
Type | Name | Description |
---|---|---|
IFileSystemExpression | expression | The expression this convention should be applied to |
Returns
Type | Description |
---|---|
IFileSystemExpression | The same or a new expression. The underlying type must stay the same. |