示例#1
0
 public FactorySelectBuild WhereSampling_periodLike(params string[] Sampling_period)
 {
     if (Sampling_period == null || Sampling_period.Where(a => !string.IsNullOrEmpty(a)).Any() == false)
     {
         return(this);
     }
     return(this.Where1Or(@"a.`sampling_period` LIKE {0}", Sampling_period.Select(a => "%" + a + "%").ToArray()));
 }
示例#2
0
        public override string ToString()
        {
            string json = string.Concat(
                __jsonIgnore.ContainsKey("Id") ? string.Empty : string.Format(", Id : {0}", Id == null ? "null" : Id.ToString()),
                __jsonIgnore.ContainsKey("Area_id") ? string.Empty : string.Format(", Area_id : {0}", Area_id == null ? "null" : Area_id.ToString()),
                __jsonIgnore.ContainsKey("Capacity") ? string.Empty : string.Format(", Capacity : {0}", Capacity == null ? "null" : string.Format("'{0}'", Capacity.Replace("\\", "\\\\").Replace("\r\n", "\\r\\n").Replace("'", "\\'"))),
                __jsonIgnore.ContainsKey("Create_time") ? string.Empty : string.Format(", Create_time : {0}", Create_time == null ? "null" : Create_time.Value.Subtract(new DateTime(1970, 1, 1)).TotalMilliseconds.ToString()),
                __jsonIgnore.ContainsKey("Main_business") ? string.Empty : string.Format(", Main_business : {0}", Main_business == null ? "null" : string.Format("'{0}'", Main_business.Replace("\\", "\\\\").Replace("\r\n", "\\r\\n").Replace("'", "\\'"))),
                __jsonIgnore.ContainsKey("Min_order") ? string.Empty : string.Format(", Min_order : {0}", Min_order == null ? "null" : string.Format("'{0}'", Min_order.Replace("\\", "\\\\").Replace("\r\n", "\\r\\n").Replace("'", "\\'"))),
                __jsonIgnore.ContainsKey("Process_cost") ? string.Empty : string.Format(", Process_cost : {0}", Process_cost == null ? "null" : string.Format("'{0}'", Process_cost.Replace("\\", "\\\\").Replace("\r\n", "\\r\\n").Replace("'", "\\'"))),
                __jsonIgnore.ContainsKey("Sampling_period") ? string.Empty : string.Format(", Sampling_period : {0}", Sampling_period == null ? "null" : string.Format("'{0}'", Sampling_period.Replace("\\", "\\\\").Replace("\r\n", "\\r\\n").Replace("'", "\\'"))),
                __jsonIgnore.ContainsKey("Sampling_price") ? string.Empty : string.Format(", Sampling_price : {0}", Sampling_price == null ? "null" : string.Format("'{0}'", Sampling_price.Replace("\\", "\\\\").Replace("\r\n", "\\r\\n").Replace("'", "\\'"))),
                __jsonIgnore.ContainsKey("Telphone") ? string.Empty : string.Format(", Telphone : {0}", Telphone == null ? "null" : string.Format("'{0}'", Telphone.Replace("\\", "\\\\").Replace("\r\n", "\\r\\n").Replace("'", "\\'"))),
                __jsonIgnore.ContainsKey("Title") ? string.Empty : string.Format(", Title : {0}", Title == null ? "null" : string.Format("'{0}'", Title.Replace("\\", "\\\\").Replace("\r\n", "\\r\\n").Replace("'", "\\'"))),
                __jsonIgnore.ContainsKey("Turn_single_time") ? string.Empty : string.Format(", Turn_single_time : {0}", Turn_single_time == null ? "null" : string.Format("'{0}'", Turn_single_time.Replace("\\", "\\\\").Replace("\r\n", "\\r\\n").Replace("'", "\\'"))), " }");

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