Search Results for

    Show / Hide Table of Contents

    Class DefaultRootPathConvention

    The default implementation of a IRootPathConvention

    Inheritance
    object
    DefaultRootPathConvention
    Implements
    IRootPathConvention
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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

    DefaultRootPathConvention(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

    Apply(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.

    Implements

    IRootPathConvention
    In this article
    Back to top
    Copyright © 2018 Fluent Migrator Project
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.