123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using ProtoBuf;
- 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
- {
- [ProtoContract]
- [CosmosDB(RU = 400, Name = "CoreClassroomStudent",Cache = true)]
- public class ClassroomStudent:ID
- {
- /// <summary>
- /// classroomCode
- /// </summary>
- [ProtoMember(1)]
- [Required(ErrorMessage = "{0} 必须填写")]
- public string id { get; set; } //classroomCode
- [ProtoMember(2)]
- [Required(ErrorMessage = "{0} 必须填写")]
- [PartitionKey]
- public string scopeCode { get; set; }
- [ProtoMember(3)]
- public HashSet<string> studentId { get; set; }
- //public class Stu
- //{
- // public string studentId { get; set; }
- // /// <summary>
- // /// 座位
- // /// </summary>
- // public int seatNo { get; set; }
- //}
- }
- }
|