C# 클래스 DataAccessModule.DAConnect

파일 보기 프로젝트 열기: jasonhuber/devryweb460store 1 사용 예제들

공개 메소드들

메소드 설명
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