ClassRoomStudent.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using ProtoBuf;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Text;
  6. using TEAMModelOS.SDK.Context.Attributes.Azure;
  7. using TEAMModelOS.SDK.Module.AzureCosmosDBV3;
  8. namespace TEAMModelOS.Service.Models.Core
  9. {
  10. [ProtoContract]
  11. [CosmosDB(RU = 400, Name = "CoreClassroomStudent",Cache = true)]
  12. public class ClassroomStudent:ID
  13. {
  14. /// <summary>
  15. /// classroomCode
  16. /// </summary>
  17. [ProtoMember(1)]
  18. [Required(ErrorMessage = "{0} 必须填写")]
  19. public string id { get; set; } //classroomCode
  20. [ProtoMember(2)]
  21. [Required(ErrorMessage = "{0} 必须填写")]
  22. [PartitionKey]
  23. public string scopeCode { get; set; }
  24. [ProtoMember(3)]
  25. public HashSet<string> studentId { get; set; }
  26. //public class Stu
  27. //{
  28. // public string studentId { get; set; }
  29. // /// <summary>
  30. // /// 座位
  31. // /// </summary>
  32. // public int seatNo { get; set; }
  33. //}
  34. }
  35. }