public static bool isNormative(DictionaryPublishingHouse publishingHouse, ref List <string> errorMsg)
        {
            List <string> errorList = new List <string>();

            if (publishingHouse.Id <= 0)
            {
                errorList.Add("BookSellerId Error");
            }
            Match matchCallNumber = Regex.Match(publishingHouse.CallNumber, @"^(\d{1,11})$");

            if (!matchCallNumber.Success)
            {
                errorList.Add("CallNumber Error");
            }
            Match matchPostCodes = Regex.Match(publishingHouse.PostCodes.ToString(), @"^(\d{5,6})$");

            if (!matchPostCodes.Success)
            {
                errorList.Add("PostCodes Error");
            }
            if (errorList.Count > 0)
            {
                return(true);
            }
            errorMsg = errorList;
            return(false);
        }
 /// <summary>
 /// 判断是否有空值
 /// </summary>
 /// <param name="bookseller">书商字典项</param>
 /// <returns></returns>
 public static bool isNull(DictionaryPublishingHouse publishingHouse)
 {
     if (publishingHouse.PublishingHouse == "")
     {
         return(true);
     }
     if (publishingHouse.Location == "")
     {
         return(true);
     }
     if (publishingHouse.PublishingLocation == "")
     {
         return(true);
     }
     if (publishingHouse.CallNumber == "")
     {
         return(true);
     }
     if (publishingHouse.PostCodes == 0)
     {
         return(true);
     }
     if (publishingHouse.BankName == "")
     {
         return(true);
     }
     return(false);
 }