C# Class DataAccessModule.SQLServerConnect

Inheritance: DAConnect
Afficher le fichier Open project: jasonhuber/devryweb460store Class Usage Examples

Méthodes publiques

Méthode Description
GetConnectionString ( ) : string
ReadConfiguration ( string P_configFile ) : void

This method will read the configuration file and set all the internal attributes needed to process the file.

SQLServerConnect ( string P_configFile ) : System
SetupConnectionString ( string P_connectStr ) : void

Set the complete connection string

SetupConnectionString ( string P_server, string P_database ) : void

This is the conncetion string for an Integrated Security connection

SetupConnectionString ( string P_user, string P_password, string P_server, string P_database ) : void

This method will get the connection information and store it for later use.

Method Details

GetConnectionString() public méthode

public GetConnectionString ( ) : string
Résultat string

ReadConfiguration() public méthode

This method will read the configuration file and set all the internal attributes needed to process the file.
public ReadConfiguration ( string P_configFile ) : void
P_configFile string /// Fully qualifed path to the configuration file ///
Résultat void

SQLServerConnect() public méthode

public SQLServerConnect ( string P_configFile ) : System
P_configFile string
Résultat System

SetupConnectionString() public méthode

Set the complete connection string
public SetupConnectionString ( string P_connectStr ) : void
P_connectStr string /// Full connection string to use ///
Résultat void

SetupConnectionString() public méthode

This is the conncetion string for an Integrated Security connection
public SetupConnectionString ( string P_server, string P_database ) : void
P_server string /// Name of the server ///
P_database string /// name of database ///
Résultat void

SetupConnectionString() public méthode

This method will get the connection information and store it for later use.
public SetupConnectionString ( string P_user, string P_password, string P_server, string P_database ) : void
P_user string /// User name used to connect to the database ///
P_password string /// Password to connect to the database with ///
P_server string /// Name of the server where the database is ///
P_database string /// Name of the database to use when connected ///
Résultat void