using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Xml.Serialization;
namespace Ewide.Core
{
///
/// 职位表
///
[Table("sys_pos")]
[Comment("职位表")]
public class SysPos : DEntityBase
{
///
/// 名称
///
[Comment("名称")]
public string Name { get; set; }
///
/// 编码
///
[Comment("编码")]
public string Code { get; set; }
///
/// 排序
///
[Comment("排序")]
public int Sort { get; set; }
///
/// 备注
///
[Comment("备注")]
public string Remark { get; set; }
///
/// 状态(字典 0正常 1停用 2删除)
///
[Comment("状态")]
public CommonStatus Status { get; set; } = CommonStatus.ENABLE;
///
/// 多对多(员工)
///
[XmlIgnore]
public ICollection SysEmps { get; set; }
///
/// 多对多中间表(员工职位)
///
[XmlIgnore]
public List SysEmpPos { get; set; }
}
}