You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.7 KiB
C#

using Estsh.Core.Base;
using System.ComponentModel.DataAnnotations.Schema;
namespace Estsh.Core.Models
{
[Table("sys_emp")]
[Serializable]
public class SysEmp : BaseEntity
{
[Column("emp_id")]
public int EmpId { get; set; }
[Column("emp_no")]
public string EmpNo { get; set; }
public string EmpNoMD5 { get; set; }
[Column("emp_name")]
public string EmpName { get; set; }
[Column("quit_ymd")]
public string QuitYmd { get; set; }
[Column("quit_hms")]
public string QuitHms { get; set; }
[Column("passwd")]
public string Passwd { get; set; }
[Column("emp_type")]
public int EmpType { get; set; }
[Column("company")]
public string Company { get; set; }
[Column("shift_id")]
public int ShiftId { get; set; }
[Column("factory_id")]
public int FactoryId { get; set; }
[Column("last_function")]
public string LastFunction { get; set; }
[Column("dept_id")]
public int DeptId { get; set; }
#region 扩展字段
[NotMapped]
[Column("factory")]
public string Factory { get; set; }
[NotMapped]
[Column("dept")]
public string Dept { get; set; }
[NotMapped]
[Column("shift")]
public string Shift { get; set; }
[NotMapped]
[Column("role_id")]
public string roleId { get; set; }
[NotMapped]
[Column("role_name")]
public string roleName { get; set; }
[NotMapped]
[Column("role_desc")]
public string roleDesc { get; set; }
#endregion
}
}