?? empphotodata.cs
字號(hào):
using System;
using System.Data;
using System.Data.SqlClient;
namespace qminoa.Common.Data
{
/// <summary>
/// EmpPhotoData 的摘要說(shuō)明。
/// </summary>
public class EmpPhotoData :DataSet
{
//定義表名
public const string EMPPHOTO_TABLE_NAME = "mrPhoto";
public const string CONTENT_FIELD = "Content";
//創(chuàng)建表結(jié)構(gòu)
private void BuildTable()
{
DataTable table = new DataTable(EMPPHOTO_TABLE_NAME);
DataColumnCollection cols = table.Columns;
for(int i=1;i<6;i++)
{
cols.Add(CONTENT_FIELD+i.ToString(),typeof(System.String));
}
Tables.Add(table);
}
public EmpPhotoData()
{
BuildTable();
}
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -