mo_mes_process.cs 1.7 KB

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