UserData.cs
上传用户:autodoor
上传日期:2022-08-04
资源大小:9973k
文件大小:1k
- using System;
- using System.Data;
- namespace qminoa.Common.Data
- {
- /// <summary>
- /// UserData 的摘要说明。
- /// </summary>
- public class UserData:DataSet
- {
- public const string EMP_ID="EmpID";
- public const string USER_NAME="UserName";
- public const string USER_PASSWORD="Pwd";
- public const string USER_TABLE="UserTable";
- public const string LOGONED_ID="LogonID";
-
- public UserData()
- {
- BuildTable();
- }
- protected void BuildTable()
- {
- DataTable table=new DataTable(USER_TABLE);
- DataColumnCollection Columns=table.Columns;
- DataColumn column=Columns.Add(EMP_ID,typeof(System.Int32));
- column.AllowDBNull=false;
- column.AutoIncrement=true;
- Columns.Add(USER_NAME,typeof(System.String)).AllowDBNull=false;;
- Columns.Add(USER_PASSWORD,typeof(System.String)).AllowDBNull=true;
- this.Tables.Add(table);
- }
-
- }
- }