Exemplo n.º 1
0
        public Shop_franchisingInfo FlagFranchising(uint?Franchising_id)
        {
            Shop_franchisingInfo item = Shop_franchising.GetItem(Franchising_id.Value, this.Id.Value);

            if (item == null)
            {
                item = Shop_franchising.Insert(new Shop_franchisingInfo {
                    Franchising_id = Franchising_id,
                    Shop_id        = this.Id
                });
            }
            return(item);
        }
Exemplo n.º 2
0
        public static Shop_franchisingInfo Parse(string stringify)
        {
            string[] ret = stringify.Split(new char[] { '|' }, 2, StringSplitOptions.None);
            if (ret.Length != 2)
            {
                throw new Exception("格式不正确,Shop_franchisingInfo:" + stringify);
            }
            Shop_franchisingInfo item = new Shop_franchisingInfo();

            if (string.Compare("null", ret[0]) != 0)
            {
                item.Franchising_id = uint.Parse(ret[0]);
            }
            if (string.Compare("null", ret[1]) != 0)
            {
                item.Shop_id = uint.Parse(ret[1]);
            }
            return(item);
        }
Exemplo n.º 3
0
 public static string ToJson(this Shop_franchisingInfo item)
 {
     return(string.Concat(item));
 }