mo_mes_technique.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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", "mo_mes_technique")]
  11. [Comment("工艺路径表")]
  12. public class mo_mes_technique : MoBaseEntity
  13. {
  14. ///// <summary>
  15. ///// 工艺路径主键
  16. ///// </summary>
  17. //[Key]
  18. //[Comment("工艺路径主键")]
  19. //public long tech_id { get; set; }
  20. /// <summary>
  21. /// 工艺路径名称
  22. /// </summary>
  23. [Required]
  24. [StringLength(100)]
  25. [Comment("工艺路径名称")]
  26. [BsonRepresentation(MongoDB.Bson.BsonType.String)]
  27. public string? tech_name { get; set; }
  28. /// <summary>
  29. /// 效率计算层级
  30. /// </summary>
  31. [Required]
  32. [Comment("效率计算层级")]
  33. public int? level { get; set; }
  34. /// <summary>
  35. /// 产品
  36. /// </summary>
  37. [StringLength(100)]
  38. [Comment("产品")]
  39. [BsonRepresentation(MongoDB.Bson.BsonType.String)]
  40. public string? bom { get; set; }
  41. /// <summary>
  42. /// 产品版本
  43. /// </summary>
  44. [StringLength(100)]
  45. [Comment("产品版本")]
  46. [BsonRepresentation(MongoDB.Bson.BsonType.String)]
  47. public string? bomver { get; set; }
  48. /// <summary>
  49. /// 描述
  50. /// </summary>
  51. [StringLength(100)]
  52. [Comment("描述")]
  53. [BsonRepresentation(MongoDB.Bson.BsonType.String)]
  54. public string? desc { get; set; }
  55. }
  56. }