12345678910111213141516171819202122232425262728293031323334 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.Text;
- using TEAMModelOS.SDK.Context.Attributes.Azure;
- using TEAMModelOS.SDK.Module.AzureCosmosDBV3;
- namespace TEAMModelOS.Service.Models.Core
- {
- [CosmosDB(RU = 400, Name = "CoreClassroomStudent",Cache = true)]
- public class ClassroomStudent:ID
- {
- [Required(ErrorMessage = "{0} 必须填写")]
- public string id { get; set; } //classroomCode
- [Required(ErrorMessage = "{0} 必须填写")]
- [PartitionKey]
- public string scopeCode { get; set; }
- public HashSet<string> studentId { get; set; }
- public class Stu
- {
- public string studentId { get; set; }
- /// <summary>
- /// 座位
- /// </summary>
- public int seatNo { get; set; }
- }
- }
- }
|