|
| 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.
|
| |
◆ 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
-
- Returns
◆ buildUpdate()
| static string IS.Base.SQLBase.buildUpdate |
( |
string | tableName, |
|
|
string | where, |
|
|
params spParam[] | paras ) |
|
inlinestatic |
Tạo câu lệnh update.
- Parameters
-
- 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
-
- Returns
◆ BuildValueType() [2/2]
| static string IS.Base.SQLBase.BuildValueType |
( |
string | sData, |
|
|
System::TypeCode | type ) |
|
inlinestatic |
add special character to value
- Parameters
-
- Returns
◆ GenName()
| static string IS.Base.SQLBase.GenName |
( |
TypeCode | type | ) |
|
|
inlinestatic |
change text type to database type
- Parameters
-
- 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
-
- Returns
◆ GetInsertComma()
| static string IS.Base.SQLBase.GetInsertComma |
( |
string | SQL | ) |
|
|
inlinestaticprotected |
check the ' if it is needed
- Parameters
-
- 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
-
- 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
-
- 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
-
- Returns
The documentation for this class was generated from the following file:
- baseprojects_net45_pool/IS.Base/clSQLBase.cs