C# Класс DataAccessModule.DAConnect

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ExecuteCmd ( string P_cmd, ParmList P_parmList ) : void

This method will take in a stored procedure call and return a SqlDataReader

ExecuteStoredProc ( string P_storedProcedureCall ) : void

This method will execute a command in the database. This can be any command that the database can execute, select, insert, update, exec, etc.

GetConnectionString ( ) : string
ReturnSQLDataReader ( string P_cmd, ParmList P_parmList ) : DataTable

This method will take in a stored procedure call and return a SqlDataReader

SetupConnectionString ( string P_ConnectionStr ) : void

This is the conncetion string for an Integrated Security connection

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.

Описание методов

ExecuteCmd() публичный Метод

This method will take in a stored procedure call and return a SqlDataReader
public ExecuteCmd ( string P_cmd, ParmList P_parmList ) : void
P_cmd string /// Stored Procedure to execute ///
P_parmList ParmList /// List of parameters ///
Результат void

ExecuteStoredProc() публичный Метод

This method will execute a command in the database. This can be any command that the database can execute, select, insert, update, exec, etc.
public ExecuteStoredProc ( string P_storedProcedureCall ) : void
P_storedProcedureCall string /// Command to execute ///
Результат void

GetConnectionString() публичный абстрактный Метод

public abstract GetConnectionString ( ) : string
Результат string

ReturnSQLDataReader() публичный Метод

This method will take in a stored procedure call and return a SqlDataReader
public ReturnSQLDataReader ( string P_cmd, ParmList P_parmList ) : DataTable
P_cmd string /// Stored Procedure to execute ///
P_parmList ParmList /// List of parameters ///
Результат System.Data.DataTable

SetupConnectionString() публичный абстрактный Метод

This is the conncetion string for an Integrated Security connection
public abstract SetupConnectionString ( string P_ConnectionStr ) : void
P_ConnectionStr string /// Connection String ///
Результат void

SetupConnectionString() публичный абстрактный Метод

This is the conncetion string for an Integrated Security connection
public abstract SetupConnectionString ( string P_server, string P_database ) : void
P_server string /// Name of the server ///
P_database string /// name of database ///
Результат void

SetupConnectionString() публичный абстрактный Метод

This method will get the connection information and store it for later use.
public abstract 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 ///
Результат void