Browse Source

修改分区

CrazyIter 5 năm trước cách đây
mục cha
commit
16fb645570
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      TEAMModelOS.Service/Models/Core/Teacher.cs

+ 2 - 0
TEAMModelOS.Service/Models/Core/Teacher.cs

@@ -2,6 +2,7 @@
 using System.Collections.Generic;
 using System.ComponentModel.DataAnnotations;
 using System.Text;
+using TEAMModelOS.SDK.Context.Attributes.Azure;
 
 namespace TEAMModelOS.Service.Models.Core
 {
@@ -18,6 +19,7 @@ namespace TEAMModelOS.Service.Models.Core
         public string name { get; set; }
         public string email { get; set; }
         public string cellphone { get; set; }
+        [PartitionKey]
         public string countryCode { get; set; }
         public int verifyFlg { get; set; }
         public int status { get; set; } = 0;