using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; using TEAMModelOS.SDK.Context.Attributes.Azure; using TEAMModelOS.SDK.DI; namespace TEAMModelFunction { /// /// 考试成绩信息 /// //[CosmosDB(Database = "TEAMModelOS", Name = "School")] public class ExamResult:ID { [PartitionKey] [Required(ErrorMessage = "{0} 必须填写")] public string code { get; set; } // [PartitionKey(name = "ExamResult")] public string pk { get; set; } public int? ttl { get; set; } public ExamResult() { classes = new List(); studentScores = new List>(); studentIds = new List(); point = new List(); } public string id { get; set; } public string name { get; set; } public string time { get; set; } public string subjectId { get; set; } public List classes { get; set; } public List> studentScores { get; set; } public List studentIds { get; set; } public List point { get; set; } public string schoolId { get; set; } public PaperSimple paper { get; set; } public string scope { get; set; } public string examId { get; set; } public string school { get; set; } public int year { get; set; } } public class ClassRange { public string id { get; set; } public string name { get; set; } public List range { get; set; } } }