mo_mes_technique.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using Business.Core.Attributes;
  2. using Business.MongoModel;
  3. using Microsoft.EntityFrameworkCore;
  4. using MongoDB.Bson.Serialization.Attributes;
  5. using System.ComponentModel;
  6. using System.ComponentModel.DataAnnotations;
  7. namespace Business.MongoModel.Tech
  8. {
  9. /// <summary>
  10. /// 工艺路径表
  11. /// </summary>
  12. [CollectionName("dopbase", "mo_mes_technique")]
  13. [Comment("工艺路径表")]
  14. public class mo_mes_technique : MoBaseEntity
  15. {
  16. ///// <summary>
  17. ///// 工艺路径主键
  18. ///// </summary>
  19. //[Key]
  20. //[Comment("工艺路径主键")]
  21. //public long tech_id { get; set; }
  22. /// <summary>
  23. /// 工艺路径名称
  24. /// </summary>
  25. [Required]
  26. [StringLength(100)]
  27. [Comment("工艺路径名称")]
  28. [BsonRepresentation(MongoDB.Bson.BsonType.String)]
  29. public string? tech_name { get; set; }
  30. /// <summary>
  31. /// 效率计算层级
  32. /// </summary>
  33. [Required]
  34. [Comment("效率计算层级")]
  35. public int? level { get; set; }
  36. /// <summary>
  37. /// 产品
  38. /// </summary>
  39. [StringLength(100)]
  40. [Comment("产品")]
  41. [BsonRepresentation(MongoDB.Bson.BsonType.String)]
  42. public string? bom { get; set; }
  43. /// <summary>
  44. /// 产品版本
  45. /// </summary>
  46. [StringLength(100)]
  47. [Comment("产品版本")]
  48. [BsonRepresentation(MongoDB.Bson.BsonType.String)]
  49. public string? bomver { get; set; }
  50. /// <summary>
  51. /// 描述
  52. /// </summary>
  53. [StringLength(100)]
  54. [Comment("描述")]
  55. [BsonRepresentation(MongoDB.Bson.BsonType.String)]
  56. public string? desc { get; set; }
  57. }
  58. }