mes_process.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using Business.Core.Attributes;
  2. using Microsoft.EntityFrameworkCore;
  3. using MongoDB.Bson.Serialization.Attributes;
  4. using System.ComponentModel.DataAnnotations;
  5. namespace Business.Domain
  6. {
  7. /// <summary>
  8. /// 工序表
  9. /// </summary>
  10. [CollectionName("dopbase", "mes_process")]
  11. [Comment("工序表")]
  12. public class mes_process : BaseEntity
  13. {
  14. ///// <summary>
  15. ///// 工序主键
  16. ///// </summary>
  17. //[Key]
  18. //[Comment("工序主键")]
  19. //public long proc_id { get; set; }
  20. /// <summary>
  21. /// 工序名称
  22. /// </summary>
  23. [Required]
  24. [StringLength(100)]
  25. [Comment("工序名称")]
  26. [BsonRepresentation(MongoDB.Bson.BsonType.String)]
  27. public string proc_name { get; set; }
  28. /// <summary>
  29. /// 简述
  30. /// </summary>
  31. [StringLength(500)]
  32. [Comment("简述")]
  33. [BsonRepresentation(MongoDB.Bson.BsonType.String)]
  34. public string short_desc { get; set; }
  35. /// <summary>
  36. /// 详细描述
  37. /// </summary>
  38. [StringLength(2000)]
  39. [Comment("详细描述")]
  40. [BsonRepresentation(MongoDB.Bson.BsonType.String)]
  41. public string long_desc { get; set; }
  42. /// <summary>
  43. /// 组合工序id
  44. /// </summary>
  45. [StringLength(2000)]
  46. [Comment("组合工序id")]
  47. [BsonRepresentation(MongoDB.Bson.BsonType.String)]
  48. public string subids { get; set; }
  49. }
  50. }