- 修复 LazyLoading 依赖项目 CSScript.Core 升级的 bug;(以上都不再升级该依赖)

This commit is contained in:
28810
2020-03-06 17:01:30 +08:00
parent 123ae07cfa
commit 2089a1f747
9 changed files with 437 additions and 5 deletions

View File

@ -0,0 +1,96 @@
using FreeSql;
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
/// <summary>
/// 部门表
/// </summary>
[Serializable]
[Index("部门代码deptcode唯一", "deptcode", true)]
public class DEPARTMENTS : BaseEntity<DEPARTMENTS>
{
/// <summary>
/// 部门ID
/// </summary>
[Column(IsPrimary = true)]
[System.ComponentModel.DisplayName("部门ID")]
public int deptid { get; set; }
///// <summary>
///// 员工列表 对应employee.deptid
///// </summary>
//[Navigate("deptid")]
//public List<employee> Employees { get; set; }
/// <summary>
/// 上级部门ID
/// </summary>
[System.ComponentModel.DisplayName("上级部门ID")]
public int? supdeptid { get; set; }
/// <summary>
/// 上级部门对象
/// </summary>
[Navigate("supdeptid")]
public DEPARTMENTS pDepartments { get; set; }
/// <summary>
/// 部门主管ID
/// </summary>
[System.ComponentModel.DisplayName("部门主管ID")]
public int? managerid { get; set; }
/// <summary>
/// 部门主管对象
/// </summary>
[Navigate("managerid")]
public userinfo manager { get; set; }
///// <summary>
///// 下级部门列表
///// </summary>
//[Navigate("supdeptid")]
//public List<departments> childDepartments { get; set; }
[Navigate(ManyToMany = typeof(dept_user))]
public List<userinfo> employeesMany { get; set; }
#region MyRegion
/// <summary>
/// 部门代码
/// </summary>
[System.ComponentModel.DisplayName("部门代码")]
[System.ComponentModel.DataAnnotations.Required()]
public string deptcode { get; set; }
/// <summary>
/// 部门名称
/// </summary>
[System.ComponentModel.DisplayName("部门名称")]
[System.ComponentModel.DataAnnotations.Required()]
public string deptname { get; set; }
#endregion
public short? InheritParentSch { get; set; }
public short? InheritDeptSch { get; set; }
public short? InheritDeptSchClass { get; set; }
public short? AutoSchPlan { get; set; }
public short? InLate { get; set; }
public short? OutEarly { get; set; }
public short? InheritDeptRule { get; set; }
public int? MinAutoSchInterval { get; set; }
public short? RegisterOT { get; set; }
public int? DefaultSchId { get; set; }
public short? ATT { get; set; }
public short? Holiday { get; set; }
public short? OverTime { get; set; }
}