C# Class DataAccessModule.SQLServerConnect

Inheritance: DAConnect
Mostrar archivo Open project: jasonhuber/devryweb460store Class Usage Examples

Public Methods

Method 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 method

public GetConnectionString ( ) : string
return string

ReadConfiguration() public method

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 ///
return void

SQLServerConnect() public method

public SQLServerConnect ( string P_configFile ) : System
P_configFile string
return System

SetupConnectionString() public method

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

SetupConnectionString() public method

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 ///
return void

SetupConnectionString() public method

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 ///
return void