فهرست منبع

验证属性字段,增加逗号分开的字符串字段

lichunlei 5 ماه پیش
والد
کامیت
659d4da914
1فایلهای تغییر یافته به همراه14 افزوده شده و 0 حذف شده
  1. 14 0
      Model/Database/ApiInfo.cs

+ 14 - 0
Model/Database/ApiInfo.cs

@@ -239,6 +239,20 @@ namespace Model
         /// 验证属性
         /// </summary>
         public string[] checkAttribute { get; set; }
+        public string checkAttributeString
+        {
+            get
+            {
+                if (checkAttribute != null)
+                {
+                    return string.Join(",", checkAttribute);
+                }
+                else
+                {
+                    return "";
+                }
+            }   
+        }
 
 
         /// <summary>