Exemplo n.º 1
0
 public ShopsecuritySelectBuild WhereLicense_imgLike(params string[] License_img)
 {
     if (License_img == null || License_img.Where(a => !string.IsNullOrEmpty(a)).Any() == false)
     {
         return(this);
     }
     return(this.Where1Or(@"a.`license_img` LIKE {0}", License_img.Select(a => "%" + a + "%").ToArray()));
 }
Exemplo n.º 2
0
        public override string ToString()
        {
            string json = string.Concat(
                __jsonIgnore.ContainsKey("Shop_id") ? string.Empty : string.Format(", Shop_id : {0}", Shop_id == null ? "null" : Shop_id.ToString()),
                __jsonIgnore.ContainsKey("Idcard") ? string.Empty : string.Format(", Idcard : {0}", Idcard == null ? "null" : string.Format("'{0}'", Idcard.Replace("\\", "\\\\").Replace("\r\n", "\\r\\n").Replace("'", "\\'"))),
                __jsonIgnore.ContainsKey("Idcard_img1") ? string.Empty : string.Format(", Idcard_img1 : {0}", Idcard_img1 == null ? "null" : string.Format("'{0}'", Idcard_img1.Replace("\\", "\\\\").Replace("\r\n", "\\r\\n").Replace("'", "\\'"))),
                __jsonIgnore.ContainsKey("Idcard_img2") ? string.Empty : string.Format(", Idcard_img2 : {0}", Idcard_img2 == null ? "null" : string.Format("'{0}'", Idcard_img2.Replace("\\", "\\\\").Replace("\r\n", "\\r\\n").Replace("'", "\\'"))),
                __jsonIgnore.ContainsKey("License_img") ? string.Empty : string.Format(", License_img : {0}", License_img == null ? "null" : string.Format("'{0}'", License_img.Replace("\\", "\\\\").Replace("\r\n", "\\r\\n").Replace("'", "\\'"))), " }");

            return(string.Concat("{", json.Substring(1)));
        }