studentEntity.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using LeaRun.Application.Code;
  3. namespace LeaRun.Application.Entity.BaseManage
  4. {
  5. /// <summary>
  6. /// 版 本
  7. /// Copyright (c) 2013-2016 上海力软信息技术有限公司
  8. /// 创 建:超级管理员
  9. /// 日 期:2017-03-01 09:20
  10. /// 描 述:学生表
  11. /// </summary>
  12. public class studentEntity : BaseEntity
  13. {
  14. #region 实体成员
  15. /// <summary>
  16. ///
  17. /// </summary>
  18. /// <returns></returns>
  19. public string id { get; set; }
  20. /// <summary>
  21. /// 姓名
  22. /// </summary>
  23. /// <returns></returns>
  24. public string name { get; set; }
  25. /// <summary>
  26. /// 性别
  27. /// </summary>
  28. /// <returns></returns>
  29. public string sex { get; set; }
  30. #endregion
  31. #region 扩展操作
  32. /// <summary>
  33. /// 新增调用
  34. /// </summary>
  35. public override void Create()
  36. {
  37. this.id = Guid.NewGuid().ToString();
  38. }
  39. /// <summary>
  40. /// 编辑调用
  41. /// </summary>
  42. /// <param name="keyValue"></param>
  43. public override void Modify(string keyValue)
  44. {
  45. this.id = keyValue;
  46. }
  47. #endregion
  48. }
  49. }