예제 #1
0
        public Rentsublet_franchisingInfo FlagFranchising(uint?Franchising_id)
        {
            Rentsublet_franchisingInfo item = Rentsublet_franchising.GetItem(Franchising_id.Value, this.Id.Value);

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

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