xf hace 4 meses
padre
commit
3982f799fc
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/Hotline/KnowledgeBase/KnowledgeRelationType.cs

+ 2 - 0
src/Hotline/KnowledgeBase/KnowledgeRelationType.cs

@@ -22,11 +22,13 @@ namespace Hotline.KnowledgeBase
         /// <summary>
         /// 知识库ID
         /// </summary>
+        [SugarColumn(IsPrimaryKey = true)]
         public string KnowledgeId { get; set; }
 
         /// <summary>
         /// 知识库类型ID
         /// </summary>
+        [SugarColumn(IsPrimaryKey = true)]
         public string KnowledgeTypeId { get; set; }
 
 		/// <summary>