Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
ExtendingSample
Components
DefaultConnectionFactory
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
Datei anzeigen
Open project: nats/castle-1.0.3-mono
Public Methods
Method
Description
CreateConnection
( ) :
IDbConnection
DefaultConnectionFactory
(
String
connectionString
) :
System
Method Details
CreateConnection()
public
method
public
CreateConnection
( ) :
IDbConnection
return
IDbConnection
DefaultConnectionFactory()
public
method
public
DefaultConnectionFactory
(
String
connectionString
) :
System
connectionString
String
return
System