Class TextReaderSource
A ITextSource implementation that uses a TextReader as source.
Inherited Members
Namespace: FluentMigrator.Runner.BatchParser.Sources
Assembly: FluentMigrator.Runner.Core.dll
Syntax
public class TextReaderSource : ITextSource, IDisposable
Constructors
TextReaderSource(TextReader)
Initializes a new instance of the TextReaderSource class.
Declaration
public TextReaderSource(TextReader reader)
Parameters
Type | Name | Description |
---|---|---|
TextReader | reader | The text reader to use |
Remarks
This function doesn't take ownership of the reader
.
TextReaderSource(TextReader, bool)
Initializes a new instance of the TextReaderSource class.
Declaration
public TextReaderSource(TextReader reader, bool takeOwnership)
Parameters
Type | Name | Description |
---|---|---|
TextReader | reader | The text reader to use |
bool | takeOwnership |
|
Methods
CreateReader()
Creates a reader
Declaration
public ILineReader CreateReader()
Returns
Type | Description |
---|---|
ILineReader |
|
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()