ClassRoomStudent.cs 882 B

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