Свойство | Type | Description | |
---|---|---|---|
connectionString | string |
Méthode | Description | |
---|---|---|
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 |
ִ�ж���SQL��䣬ʵ�����ݿ�����
|
|
ExecuteSqlTran ( |
ִ�ж���SQL��䣬ʵ�����ݿ�����
|
|
ExecuteSqlTranWithIndentity ( |
ִ�ж���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
|
|
Query ( string SQLString, int Times ) : |
||
RunProcedure ( string storedProcName, IDataParameter parameters, string tableName ) : |
ִ�д洢����
|
|
RunProcedure ( string storedProcName, IDataParameter parameters, string tableName, int Times ) : |
||
RunProcedure ( string storedProcName, IDataParameter parameters ) : System.Data.SqlClient.SqlDataReader |
ִ�д洢���̣�����SqlDataReader ( ע�⣺���ø÷�����һ��Ҫ��SqlDataReader����Close )
|
|
RunProcedure ( string storedProcName, IDataParameter parameters, int &rowsAffected ) : int |
ִ�д洢���̣�����Ӱ�������
|
|
TabExists ( string TableName ) : bool |
���Ƿ����
|
Méthode | Description | |
---|---|---|
BuildIntCommand ( |
���� SqlCommand ����ʵ��(��������һ������ֵ)
|
|
BuildQueryCommand ( |
���� SqlCommand ����(��������һ���������������һ������ֵ)
|
|
PrepareCommand ( |
public static ColumnExists ( string tableName, string columnName ) : bool | ||
tableName | string | ������ |
columnName | string | ������ |
Résultat | bool |
public static ExecuteReader ( string strSQL ) : System.Data.SqlClient.SqlDataReader | ||
strSQL | string | ��ѯ��� |
Résultat | System.Data.SqlClient.SqlDataReader |
public static ExecuteSql ( string SQLString ) : int | ||
SQLString | string | SQL��� |
Résultat | int |
public static ExecuteSql ( string SQLString, string content ) : int | ||
SQLString | string | SQL��� |
content | string | ��������,����һ���ֶ��Ǹ�ʽ���ӵ����£���������ţ�����ͨ�������ʽ��� |
Résultat | int |
public static ExecuteSqlByTime ( string SQLString, int Times ) : int | ||
SQLString | string | |
Times | int | |
Résultat | int |
public static ExecuteSqlGet ( string SQLString, string content ) : object | ||
SQLString | string | SQL��� |
content | string | ��������,����һ���ֶ��Ǹ�ʽ���ӵ����£���������ţ�����ͨ�������ʽ��� |
Résultat | object |
public static ExecuteSqlInsertImg ( string strSQL, byte fs ) : int | ||
strSQL | string | SQL��� |
fs | byte | ͼ���ֽ�,���ݿ���ֶ�����Ϊimage����� |
Résultat | int |
public static ExecuteSqlTran ( List |
||
SQLStringList | List |
����SQL��� |
Résultat | int |
public static ExecuteSqlTran ( |
||
SQLStringList | SQL���Ĺ�ϣ���keyΪsql��䣬value�Ǹ�����SqlParameter[]�� | |
Résultat | void |
public static ExecuteSqlTranWithIndentity ( |
||
SQLStringList | SQL���Ĺ�ϣ���keyΪsql��䣬value�Ǹ�����SqlParameter[]�� | |
Résultat | void |
public static Exists ( string strSql ) : bool | ||
strSql | string | |
Résultat | bool |
public static GetMaxID ( string FieldName, string TableName ) : int | ||
FieldName | string | |
TableName | string | |
Résultat | int |
public static GetSingle ( string SQLString ) : object | ||
SQLString | string | �����ѯ������ |
Résultat | object |
public static GetSingle ( string SQLString, int Times ) : object | ||
SQLString | string | |
Times | int | |
Résultat | object |
public static Query ( string SQLString ) : |
||
SQLString | string | ��ѯ��� |
Résultat |
public static Query ( string SQLString, int Times ) : |
||
SQLString | string | |
Times | int | |
Résultat |
public static RunProcedure ( string storedProcName, IDataParameter parameters, string tableName ) : |
||
storedProcName | string | �洢������ |
parameters | IDataParameter | �洢���̲��� |
tableName | string | DataSet����еı��� |
Résultat |
public static RunProcedure ( string storedProcName, IDataParameter parameters, string tableName, int Times ) : |
||
storedProcName | string | |
parameters | IDataParameter | |
tableName | string | |
Times | int | |
Résultat |
public static RunProcedure ( string storedProcName, IDataParameter parameters ) : System.Data.SqlClient.SqlDataReader | ||
storedProcName | string | �洢������ |
parameters | IDataParameter | �洢���̲��� |
Résultat | System.Data.SqlClient.SqlDataReader |
public static RunProcedure ( string storedProcName, IDataParameter parameters, int &rowsAffected ) : int | ||
storedProcName | string | �洢������ |
parameters | IDataParameter | �洢���̲��� |
rowsAffected | int | Ӱ������� |
Résultat | int |
public static TabExists ( string TableName ) : bool | ||
TableName | string | |
Résultat | bool |