C# Class ExtendingSample.Components.DefaultConnectionFactory

Example of a real connection factory class. Note that the Type of the connection is a property of the class, so its easy to change to SqlConnection, Odbc, Oracle, MySql etc.
Inheritance: IConnectionFactory
Afficher le fichier Open project: nats/castle-1.0.3-mono

Méthodes publiques

Méthode Description
CreateConnection ( ) : IDbConnection
DefaultConnectionFactory ( String connectionString ) : System

Method Details

CreateConnection() public méthode

public CreateConnection ( ) : IDbConnection
Résultat IDbConnection

DefaultConnectionFactory() public méthode

public DefaultConnectionFactory ( String connectionString ) : System
connectionString String
Résultat System