C# Class DotNetMigrations.Core.Data.ConnectionStringFactory

Show file Open project: jpoehls/dotnetmigrations Class Usage Examples

Public Methods

Method Description
ConnectionStringFactory ( ) : System
ConnectionStringFactory ( IConfigurationManager configManager ) : System
GetConnectionString ( string name ) : string

Gets the named connection string from app.Config

IsConnectionString ( string val ) : bool

Returns true/false whether the given value looks like a connection string.

Method Details

ConnectionStringFactory() public method

public ConnectionStringFactory ( ) : System
return System

ConnectionStringFactory() public method

public ConnectionStringFactory ( IConfigurationManager configManager ) : System
configManager IConfigurationManager
return System

GetConnectionString() public method

Gets the named connection string from app.Config
public GetConnectionString ( string name ) : string
name string
return string

IsConnectionString() public method

Returns true/false whether the given value looks like a connection string.
public IsConnectionString ( string val ) : bool
val string
return bool