Exemple #1
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)));
        }
Exemple #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("Category_id") ? string.Empty : string.Format(", Category_id : {0}", Category_id == null ? "null" : Category_id.ToString()),
                __jsonIgnore.ContainsKey("Shop_id") ? string.Empty : string.Format(", Shop_id : {0}", Shop_id == null ? "null" : Shop_id.ToString()),
                __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("Icon") ? string.Empty : string.Format(", Icon : {0}", Icon == null ? "null" : string.Format("[ '{0}' ]", string.Join("', '", Icon.ToInt64().ToSet <ProductICON>().Select <ProductICON, string>(a => a.ToDescriptionOrString().Replace("\\", "\\\\").Replace("\r\n", "\\r\\n").Replace("'", "\\'"))))),
                __jsonIgnore.ContainsKey("Price") ? string.Empty : string.Format(", Price : {0}", Price == null ? "null" : Price.ToString()),
                __jsonIgnore.ContainsKey("Stock") ? string.Empty : string.Format(", Stock : {0}", Stock == null ? "null" : Stock.ToString()),
                __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("Unit") ? string.Empty : string.Format(", Unit : {0}", Unit == null ? "null" : string.Format("'{0}'", Unit.Replace("\\", "\\\\").Replace("\r\n", "\\r\\n").Replace("'", "\\'"))), " }");

            return(string.Concat("{", json.Substring(1)));
        }
Exemple #3
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("Shop_id") ? string.Empty : string.Format(", Shop_id : {0}", Shop_id == null ? "null" : Shop_id.ToString()),
                __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("Sort") ? string.Empty : string.Format(", Sort : {0}", Sort == null ? "null" : Sort.ToString()),
                __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("Url") ? string.Empty : string.Format(", Url : {0}", Url == null ? "null" : string.Format("'{0}'", Url.Replace("\\", "\\\\").Replace("\r\n", "\\r\\n").Replace("'", "\\'"))), " }");

            return(string.Concat("{", json.Substring(1)));
        }
Exemple #4
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("Today_fav") ? string.Empty : string.Format(", Today_fav : {0}", Today_fav == null ? "null" : Today_fav.ToString()),
                __jsonIgnore.ContainsKey("Today_session") ? string.Empty : string.Format(", Today_session : {0}", Today_session == null ? "null" : Today_session.ToString()),
                __jsonIgnore.ContainsKey("Today_share") ? string.Empty : string.Format(", Today_share : {0}", Today_share == null ? "null" : Today_share.ToString()),
                __jsonIgnore.ContainsKey("Total_fav") ? string.Empty : string.Format(", Total_fav : {0}", Total_fav == null ? "null" : Total_fav.ToString()),
                __jsonIgnore.ContainsKey("Total_session") ? string.Empty : string.Format(", Total_session : {0}", Total_session == null ? "null" : Total_session.ToString()),
                __jsonIgnore.ContainsKey("Total_share") ? string.Empty : string.Format(", Total_share : {0}", Total_share == null ? "null" : Total_share.ToString()), " }");

            return(string.Concat("{", json.Substring(1)));
        }
Exemple #5
0
        public override string ToString()
        {
            string json = string.Concat(
                __jsonIgnore.ContainsKey("Member_id") ? string.Empty : string.Format(", Member_id : {0}", Member_id == null ? "null" : Member_id.ToString()),
                __jsonIgnore.ContainsKey("Shop_id") ? string.Empty : string.Format(", Shop_id : {0}", Shop_id == null ? "null" : Shop_id.ToString()),
                __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()), " }");

            return(string.Concat("{", json.Substring(1)));
        }
Exemple #6
0
        public override string ToString()
        {
            string json = string.Concat(
                __jsonIgnore.ContainsKey("Franchising_id") ? string.Empty : string.Format(", Franchising_id : {0}", Franchising_id == null ? "null" : Franchising_id.ToString()),
                __jsonIgnore.ContainsKey("Shop_id") ? string.Empty : string.Format(", Shop_id : {0}", Shop_id == null ? "null" : Shop_id.ToString()), " }");

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