Exemple #1
0
        public Factory_franchisingInfo FlagFranchising(uint?Franchising_id)
        {
            Factory_franchisingInfo item = Factory_franchising.GetItem(this.Id.Value, Franchising_id.Value);

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

            if (string.Compare("null", ret[0]) != 0)
            {
                item.Factory_id = uint.Parse(ret[0]);
            }
            if (string.Compare("null", ret[1]) != 0)
            {
                item.Franchising_id = uint.Parse(ret[1]);
            }
            return(item);
        }
Exemple #3
0
 public static string ToJson(this Factory_franchisingInfo item)
 {
     return(string.Concat(item));
 }