1. Đường dẫn tạo code
/Adminxml/SQL_Tool.aspx
2. Tạo quy tắt build code
/Adminxml/xml_getdata.aspx?file=SysToolBuildCode.xml
Ý nghĩ các ô:
Name: là tên để xuất hiện vào combobox mẫu
Text:
// * Nội dung
{text}
{text} luôn có để nạp ra vòng lặp
TextItem
* Sẽ lặp tất cả các cột trong 1 table
Cú pháp thay thế:
{col_name} Tên cột
{col_type} Kiểu cột (trong DataTable c#)
{col_type_sql} Kiểu cột trong SQL Server
{len} độ rộng cột lấy từ sq.
{enter} Xuống hàng
Ví dụ:
<xs:element name="{col_name}" type="xs:{col_type}" minOccurs="0" /> {enter}
Replace
System.String<->string
System.Int32<->int
System.Boolean<->boolean
Sử dụng Tool Build Code