mes_technique.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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_technique")]
  11. [Comment("工艺路径表")]
  12. public class mes_technique : BaseEntity
  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. [Comment("效率计算层级")]
  32. public int? level { get; set; }
  33. /// <summary>
  34. /// 产品
  35. /// </summary>
  36. [StringLength(100)]
  37. [Comment("产品")]
  38. [BsonRepresentation(MongoDB.Bson.BsonType.String)]
  39. public string bom { get; set; }
  40. /// <summary>
  41. /// 产品版本
  42. /// </summary>
  43. [StringLength(100)]
  44. [Comment("产品版本")]
  45. [BsonRepresentation(MongoDB.Bson.BsonType.String)]
  46. public string bomver { get; set; }
  47. /// <summary>
  48. /// 描述
  49. /// </summary>
  50. [StringLength(100)]
  51. [Comment("描述")]
  52. [BsonRepresentation(MongoDB.Bson.BsonType.String)]
  53. public string desc { get; set; }
  54. }
  55. }