fitframework
Loading...
Searching...
No Matches
Static Public Member Functions | Static Protected Member Functions | List of all members
IS.Base.SQLBase Class Reference

Static Public Member Functions

static string SQLError (string s)
 Hàm thực hiện bỏ tấn công sql injection.
 
static SqlDbType GenType (TypeCode type)
 Chuyển kiểu dữ liệu sang kiểu của sql.
 
static string GenName (TypeCode type)
 change text type to database type
 
static string buildUpdate (string tableName, string where, params spParam[] paras)
 Tạo câu lệnh update.
 
static string buildInsert (string tableName, params spParam[] paras)
 tạo câu lệnh SQL từ các tham số đưa vào
 
static string SQLInsertGen (string sTableName, DataRow dr, int c)
 prepare insert command
 
static string BuildValueType (string sData, SqlDbType type)
 Chuyển dữ liệu cùng định dạng trong câu lệnh sql.
 
static string BuildValueType (string sData, System.TypeCode type)
 add special character to value
 
static void SQLInsert (ref string SQL, string sFieldName, string sData, System.TypeCode type)
 Thiết lập câu lệnh insert.
 
static SqlDbType getType (string typeName)
 Chuyển đổi kiểu dữ liệu từ chuỗi sang kiểu trong sql.
 

Static Protected Member Functions

static string GetInsertComma (string SQL)
 check the ' if it is needed
 

Member Function Documentation

◆ buildInsert()

static string IS.Base.SQLBase.buildInsert ( string tableName,
params spParam[] paras )
inlinestatic

tạo câu lệnh SQL từ các tham số đưa vào

Parameters
tableName
paras
Returns

◆ buildUpdate()

static string IS.Base.SQLBase.buildUpdate ( string tableName,
string where,
params spParam[] paras )
inlinestatic

Tạo câu lệnh update.

Parameters
tableName
where
paras
Returns

◆ BuildValueType() [1/2]

static string IS.Base.SQLBase.BuildValueType ( string sData,
SqlDbType type )
inlinestatic

Chuyển dữ liệu cùng định dạng trong câu lệnh sql.

Parameters
sData
type
Returns

◆ BuildValueType() [2/2]

static string IS.Base.SQLBase.BuildValueType ( string sData,
System::TypeCode type )
inlinestatic

add special character to value

Parameters
sData
type
Returns

◆ GenName()

static string IS.Base.SQLBase.GenName ( TypeCode type)
inlinestatic

change text type to database type

Parameters
typeTên kiểu dữ liệu
Returns

◆ GenType()

static SqlDbType IS.Base.SQLBase.GenType ( TypeCode type)
inlinestatic

Chuyển kiểu dữ liệu sang kiểu của sql.

Parameters
type
Returns

◆ GetInsertComma()

static string IS.Base.SQLBase.GetInsertComma ( string SQL)
inlinestaticprotected

check the ' if it is needed

Parameters
SQL
Returns

◆ getType()

static SqlDbType IS.Base.SQLBase.getType ( string typeName)
inlinestatic

Chuyển đổi kiểu dữ liệu từ chuỗi sang kiểu trong sql.

Parameters
typeName
Returns

◆ SQLError()

static string IS.Base.SQLBase.SQLError ( string s)
inlinestatic

Hàm thực hiện bỏ tấn công sql injection.

Parameters
sChuỗi cần xử lý
Returns
Chuỗi đã xử lý

◆ SQLInsert()

static void IS.Base.SQLBase.SQLInsert ( ref string SQL,
string sFieldName,
string sData,
System::TypeCode type )
inlinestatic

Thiết lập câu lệnh insert.

Parameters
SQL
sFieldName
sData
type

◆ SQLInsertGen()

static string IS.Base.SQLBase.SQLInsertGen ( string sTableName,
DataRow dr,
int c )
inlinestatic

prepare insert command

Parameters
sTableName
dr
c
Returns

The documentation for this class was generated from the following file: