CA.Blocks.DataAccess.DI.HardCodedConnectionStringsResolver

Class HardCodedConnectionStringsResolver Class

Namespace :CA.Blocks.DataAccess.DI

Assembly : CA.Blocks.DataAccess.dll

This is a hard coded Connection String Resolver. This class is useful for providing examples and quick prototype code. Typically you will not use this once rolling out the application. The Configuration used is a Hosting app concern. See examples at :

Inheritance :




New Class Constructors

NameDescription
MethodHardCodedConnectionStringsResolver(System.String) Creates a new instance of HardCodedConnectionStringsResolver that implements IDataAccessKeyToConnectionStringResolver. The connectionString passed in will be given back at run time. The connectionStringKey is ignored with this class.

Method Methods

NameDescription
Abstract Method GetConnectionString(System.String)

returns the _connectionString given at creation time.