user.cs
来自「投票系统模块设计」· CS 代码 · 共 101 行
CS
101 行
using System;namespace Common{ /// <summary>
/// 用户信息类
/// </summary> public class User { int _id; string _username; string _password; int _role_id; string _realname; string _gender; string _teleno; string _email; string _address; /// <summary>
/// 用户id
/// </summary> public int id { get{return this._id;} set{this._id=value;} } /// <summary>
/// 用户名
/// </summary> public string username { get{return this._username;} set{this._username=value;} } /// <summary>
/// 用户密码
/// </summary> public string password { get{return this._password;} set{this._password=value;} } /// <summary>
/// 用户角色id
/// </summary> public int role_id { get{return this._role_id;} set{this._role_id=value;} } /// <summary>
/// 用户真实姓名
/// </summary> public string realname { get{return this._realname;} set{this._realname=value;} } /// <summary>
/// 性别
/// </summary> public string gender { get{return this._gender;} set{this._gender=value;} } /// <summary>
/// 电话号码
/// </summary> public string teleno { get{return this._teleno;} set{this._teleno=value;} } /// <summary>
/// Email地址
/// </summary> public string email { get{return this._email;} set{this._email=value;} } /// <summary>
/// 地址
/// </summary> public string address { get{return this._address;} set{this._address=value;} } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?