C# 클래스 StockWebApp.DBUtility.DbHelperSQL

���ݷ��ʳ�������� Copyright (C) 2004-2008 By LiTianPing
파일 보기 프로젝트 열기: AillsonWei/niusouyixia

공개 프로퍼티들

프로퍼티 타입 설명
connectionString string

공개 메소드들

메소드 설명
ColumnExists ( string tableName, string columnName ) : bool

�ж��Ƿ����ij���ij���ֶ�

DbHelperSQL ( ) : System
ExecuteReader ( string strSQL ) : System.Data.SqlClient.SqlDataReader

ִ�в�ѯ��䣬����SqlDataReader ( ע�⣺���ø÷�����һ��Ҫ��SqlDataReader����Close )

ExecuteSql ( string SQLString ) : int

ִ��SQL��䣬����Ӱ��ļ�¼��

ExecuteSql ( string SQLString, string content ) : int

ִ�д�һ���洢���̲����ĵ�SQL��䡣

ExecuteSqlByTime ( string SQLString, int Times ) : int
ExecuteSqlGet ( string SQLString, string content ) : object

ִ�д�һ���洢���̲����ĵ�SQL��䡣

ExecuteSqlInsertImg ( string strSQL, byte fs ) : int

�����ݿ������ͼ���ʽ���ֶ�(������������Ƶ���һ��ʵ��)

ExecuteSqlTran ( List SQLStringList ) : int

ִ�ж���SQL��䣬ʵ�����ݿ�����

ExecuteSqlTran ( Hashtable SQLStringList ) : void

ִ�ж���SQL��䣬ʵ�����ݿ�����

ExecuteSqlTranWithIndentity ( Hashtable SQLStringList ) : void

ִ�ж���SQL��䣬ʵ�����ݿ�����

Exists ( string strSql ) : bool
GetMaxID ( string FieldName, string TableName ) : int
GetSingle ( string SQLString ) : object

ִ��һ�������ѯ�����䣬���ز�ѯ�����object����

GetSingle ( string SQLString, int Times ) : object
Query ( string SQLString ) : DataSet

ִ�в�ѯ��䣬����DataSet

Query ( string SQLString, int Times ) : DataSet
RunProcedure ( string storedProcName, IDataParameter parameters, string tableName ) : DataSet

ִ�д洢����

RunProcedure ( string storedProcName, IDataParameter parameters, string tableName, int Times ) : DataSet
RunProcedure ( string storedProcName, IDataParameter parameters ) : System.Data.SqlClient.SqlDataReader

ִ�д洢���̣�����SqlDataReader ( ע�⣺���ø÷�����һ��Ҫ��SqlDataReader����Close )

RunProcedure ( string storedProcName, IDataParameter parameters, int &rowsAffected ) : int

ִ�д洢���̣�����Ӱ�������

TabExists ( string TableName ) : bool

���Ƿ����

비공개 메소드들

메소드 설명
BuildIntCommand ( SqlConnection connection, string storedProcName, IDataParameter parameters ) : SqlCommand

���� SqlCommand ����ʵ��(��������һ������ֵ)

BuildQueryCommand ( SqlConnection connection, string storedProcName, IDataParameter parameters ) : SqlCommand

���� SqlCommand ����(��������һ���������������һ������ֵ)

PrepareCommand ( SqlCommand cmd, SqlConnection conn, SqlTransaction trans, string cmdText, SqlParameter cmdParms ) : void

메소드 상세

ColumnExists() 공개 정적인 메소드

�ж��Ƿ����ij���ij���ֶ�
public static ColumnExists ( string tableName, string columnName ) : bool
tableName string ������
columnName string ������
리턴 bool

DbHelperSQL() 공개 메소드

public DbHelperSQL ( ) : System
리턴 System

ExecuteReader() 공개 정적인 메소드

ִ�в�ѯ��䣬����SqlDataReader ( ע�⣺���ø÷�����һ��Ҫ��SqlDataReader����Close )
public static ExecuteReader ( string strSQL ) : System.Data.SqlClient.SqlDataReader
strSQL string ��ѯ���
리턴 System.Data.SqlClient.SqlDataReader

ExecuteSql() 공개 정적인 메소드

ִ��SQL��䣬����Ӱ��ļ�¼��
public static ExecuteSql ( string SQLString ) : int
SQLString string SQL���
리턴 int

ExecuteSql() 공개 정적인 메소드

ִ�д�һ���洢���̲����ĵ�SQL��䡣
public static ExecuteSql ( string SQLString, string content ) : int
SQLString string SQL���
content string ��������,����һ���ֶ��Ǹ�ʽ���ӵ����£���������ţ�����ͨ�������ʽ���
리턴 int

ExecuteSqlByTime() 공개 정적인 메소드

public static ExecuteSqlByTime ( string SQLString, int Times ) : int
SQLString string
Times int
리턴 int

ExecuteSqlGet() 공개 정적인 메소드

ִ�д�һ���洢���̲����ĵ�SQL��䡣
public static ExecuteSqlGet ( string SQLString, string content ) : object
SQLString string SQL���
content string ��������,����һ���ֶ��Ǹ�ʽ���ӵ����£���������ţ�����ͨ�������ʽ���
리턴 object

ExecuteSqlInsertImg() 공개 정적인 메소드

�����ݿ������ͼ���ʽ���ֶ�(������������Ƶ���һ��ʵ��)
public static ExecuteSqlInsertImg ( string strSQL, byte fs ) : int
strSQL string SQL���
fs byte ͼ���ֽ�,���ݿ���ֶ�����Ϊimage�����
리턴 int

ExecuteSqlTran() 공개 정적인 메소드

ִ�ж���SQL��䣬ʵ�����ݿ�����
public static ExecuteSqlTran ( List SQLStringList ) : int
SQLStringList List ����SQL���
리턴 int

ExecuteSqlTran() 공개 정적인 메소드

ִ�ж���SQL��䣬ʵ�����ݿ�����
public static ExecuteSqlTran ( Hashtable SQLStringList ) : void
SQLStringList System.Collections.Hashtable SQL���Ĺ�ϣ���keyΪsql��䣬value�Ǹ�����SqlParameter[]��
리턴 void

ExecuteSqlTranWithIndentity() 공개 정적인 메소드

ִ�ж���SQL��䣬ʵ�����ݿ�����
public static ExecuteSqlTranWithIndentity ( Hashtable SQLStringList ) : void
SQLStringList System.Collections.Hashtable SQL���Ĺ�ϣ���keyΪsql��䣬value�Ǹ�����SqlParameter[]��
리턴 void

Exists() 공개 정적인 메소드

public static Exists ( string strSql ) : bool
strSql string
리턴 bool

GetMaxID() 공개 정적인 메소드

public static GetMaxID ( string FieldName, string TableName ) : int
FieldName string
TableName string
리턴 int

GetSingle() 공개 정적인 메소드

ִ��һ�������ѯ�����䣬���ز�ѯ�����object����
public static GetSingle ( string SQLString ) : object
SQLString string �����ѯ������
리턴 object

GetSingle() 공개 정적인 메소드

public static GetSingle ( string SQLString, int Times ) : object
SQLString string
Times int
리턴 object

Query() 공개 정적인 메소드

ִ�в�ѯ��䣬����DataSet
public static Query ( string SQLString ) : DataSet
SQLString string ��ѯ���
리턴 System.Data.DataSet

Query() 공개 정적인 메소드

public static Query ( string SQLString, int Times ) : DataSet
SQLString string
Times int
리턴 System.Data.DataSet

RunProcedure() 공개 정적인 메소드

ִ�д洢����
public static RunProcedure ( string storedProcName, IDataParameter parameters, string tableName ) : DataSet
storedProcName string �洢������
parameters IDataParameter �洢���̲���
tableName string DataSet����еı���
리턴 System.Data.DataSet

RunProcedure() 공개 정적인 메소드

public static RunProcedure ( string storedProcName, IDataParameter parameters, string tableName, int Times ) : DataSet
storedProcName string
parameters IDataParameter
tableName string
Times int
리턴 System.Data.DataSet

RunProcedure() 공개 정적인 메소드

ִ�д洢���̣�����SqlDataReader ( ע�⣺���ø÷�����һ��Ҫ��SqlDataReader����Close )
public static RunProcedure ( string storedProcName, IDataParameter parameters ) : System.Data.SqlClient.SqlDataReader
storedProcName string �洢������
parameters IDataParameter �洢���̲���
리턴 System.Data.SqlClient.SqlDataReader

RunProcedure() 공개 정적인 메소드

ִ�д洢���̣�����Ӱ�������
public static RunProcedure ( string storedProcName, IDataParameter parameters, int &rowsAffected ) : int
storedProcName string �洢������
parameters IDataParameter �洢���̲���
rowsAffected int Ӱ�������
리턴 int

TabExists() 공개 정적인 메소드

���Ƿ����
public static TabExists ( string TableName ) : bool
TableName string
리턴 bool

프로퍼티 상세

connectionString 공개적으로 정적으로 프로퍼티

public static string connectionString
리턴 string